Getting asp.net to not write to c drive where temporary folders reside?

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default Getting asp.net to not write to c drive where temporary folders reside?



    If an ASP.NET needs to use an Access database and impersonation is turned
    on, ASP.NET writes temp files to "Document settings\ServerName\ASPNET\Local
    settings\Temp" (in my c drive) even though I have my TMP and TEMP user and
    system environment variables set to a folder on another partition.

    The framework also writes to the "Temporary ASP.NET Files" folder when it
    compiles asp.net pages. That folder also resides in my c drive.

    I really do not wish these files to be written to my c drive which is my
    system drive because an asp.net user could dump large files in these
    folders, filling up the drive and potentially causing a crash.

    Is there a way to set up asp.net so that these folders could be moved to
    another drive away from the system drive?

    TIA



    --
    John Dalberg
    John Guest

  2. Similar Questions and Discussions

    1. Accessing files/folders inside other application folders
      How can I have an asc file from one application read text files in another applications directory? I have multiple applications creating text...
    2. db informix IDS 7.31: error -264,Could not write to a temporary file.
      I have allways that message when the sql is dynamic, how cat to resolve? I don't understand for this error because I have much free disk space....
    3. Why did XP Upgrade Write Protect All My Files and Folders?
      After upgrading Windows ME to Windows XP Home edition I find all of my files and folders Write protected. I have manually tried to alter their...
    4. Privatizing Folders on External Hard Drive
      I'm running XP Home on a Sony laptop and I recently purchased a Western Digital firewire hard drive for increased storage. I'm wondering if there...
    5. Can Oracle XML DB Repository and Oracle reside on different server.
      Can we store XML DB Repository on different machine which will be trated as document server and Oracle on the seperate machine will access this...
  3. #2

    Default Re: Getting asp.net to not write to c drive where temporary folders reside?

    Hello John,

    the <compilation> element has a tempDirectory atttribute where you can set
    the location of the temporary asp.net assemblies-

    ---------------------------------------
    Dominick Baier - DevelopMentor
    http://www.leastprivilege.com
     



    Dominick Guest

  4. #3

    Default RE: Getting asp.net to not write to c drive where temporary folders re

    Open Windows Explorer, browse to the specific folder, right-click on it,
    select Properties, in the Properties dialog, click the Security tab, remove
    the ASPNet account from the list (For Win2k).

    with regards,

    J.v.


    "John Dalberg" wrote:
     
    Ravichandran Guest

  5. #4

    Default Re: Getting asp.net to not write to c drive where temporary folders re

    On Wed, 18 May 2005 03:00:03 -0700, Ravichandran J.V. wrote:
     

    The impersonated user needs access to these folders. Otherwise the asp.net
    pages will give an error message. Removing NTFS write permission to a
    folder that is needed is not a solution. I was asking how to tell .net to
    relocate to another folder.





     [/ref]


    --
    John Dalberg
    John Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139