IIS having problems creating temp directories

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

  1. #1

    Default IIS having problems creating temp directories

    Hello,

    We are having problems delploying an ASP.NET application onto a server (that
    is also a domain controller - I don't know if that has anything to do with
    it).

    The error message is as seen below. We have tried ensuring that everything
    has the correct permissions but it still seems to have problems. If you have
    any ideas, or have had this problem before and know how to solve it, please
    let me know.

    Many thanks,
    Colin.



    Server Error in '/' Application.
    ----------------------------------------------------------------------------
    ----

    Access to the path "C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Tempor ary
    ASP.NET Files\root\2135a508\8d69a834" is denied.
    Description: An unhandled exception occurred during the execution of the
    current web request. Please review the stack trace for more information
    about the error and where it originated in the code.

    Exception Details: System.UnauthorizedAccessException: Access to the path
    "C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Tempor ary ASP.NET
    Files\root\2135a508\8d69a834" is denied.

    ASP.NET is not authorized to access the requested resource. Consider
    granting access rights to the resource to the ASP.NET request identity.
    ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or
    Network Service on IIS 6) that is used if the application is not
    impersonating. If the application is impersonating via <identity
    impersonate="true"/>, the identity will be the anonymous user (typically
    IUSR_MACHINENAME) or the authenticated request user.

    To grant ASP.NET write access to a file, right-click the file in Explorer,
    choose "Properties" and select the Security tab. Click "Add" to add the
    appropriate user or group. Highlight the ASP.NET account, and check the
    boxes for the desired access.

    Source Error:

    An unhandled exception was generated during the execution of the
    current web request. Information regarding the origin and location of the
    exception can be identified using the exception stack trace below.

    Stack Trace:

    [UnauthorizedAccessException: Access to the path
    "C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Tempor ary ASP.NET
    Files\root\2135a508\8d69a834" is denied.]
    System.IO.__Error.WinIOError(Int32 errorCode, String str) +393
    System.IO.Directory.InternalCreateDirectory(String fullPath, String path)
    +632
    System.IO.Directory.CreateDirectory(String path) +195
    System.Web.Compilation.PreservedAssemblyEntry.DoFi rstTimeInit(HttpContext
    context) +85

    System.Web.Compilation.PreservedAssemblyEntry.Ensu reFirstTimeInit(HttpContex
    t context) +97

    System.Web.Compilation.PreservedAssemblyEntry.GetP reservedAssemblyEntry(Http
    Context context, String virtualPath, Boolean fApplicationFile) +29
    System.Web.UI.TemplateParser.GetParserCacheItemFro mPreservedCompilation()
    +91
    System.Web.UI.TemplateParser.GetParserCacheItemInt ernal(Boolean
    fCreateIfNotFound) +148
    System.Web.UI.TemplateParser.GetParserCacheItemWit hNewConfigPath() +125
    System.Web.UI.TemplateParser.GetParserCacheItem() +88
    System.Web.UI.TemplateControlParser.CompileAndGetP arserCacheItem(String
    virtualPath, String inputFile, HttpContext context) +120
    System.Web.UI.TemplateControlParser.GetCompiledIns tance(String
    virtualPath, String inputFile, HttpContext context) +36
    System.Web.UI.PageParser.GetCompiledPageInstanceIn ternal(String
    virtualPath, String inputFile, HttpContext context) +43
    System.Web.UI.PageHandlerFactory.GetHandler(HttpCo ntext context, String
    requestType, String url, String path) +44
    System.Web.HttpApplication.MapHttpHandler(HttpCont ext context, String
    requestType, String path, String pathTranslated, Boolean useAppConfig) +699

    System.Web.MapHandlerExecutionStep.System.Web.Http Application+IExecutionStep
    ..Execute() +95
    System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
    completedSynchronously) +173



    ----------------------------------------------------------------------------
    ----
    Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
    Version:1.1.4322.573


    Colin Mackay Guest

  2. Similar Questions and Discussions

    1. Problems with FLV directories
      I am having some problems getting to the videos in my AppsDir. I have been searching the forums and documents for an answer, but no luck. Any help...
    2. Creating Virtual Directories
      I'm building an application that will host many subdomains under one domain. Each subdomain will be created on the fly by a user for demo purposes....
    3. creating directories; moving .flv files
      hello; I would like to: 1) create a directoryAA on the FCS via a .swf button 2) move a BB.flv from it's default directory into directoryAA; 3)...
    4. Creating directories... : Newbie Question
      Hey all I have this is a script: <?php $city = $_GET; $state = $_GET; if($file_name !="") {
    5. Security problem when dynamically creating directories
      I am trying to dynamically create directories in my ASP.NET application (I am using Server.MapPath("/")+"test" as the folder) and I am getting a...
  3. #2

    Default Re: [answer] IIS having problems creating temp directories

    Hello,

    I have the answer:

    The reason is that .NET 1.0 and 1.1 are installed on the machine. And it was
    the 1.0 version of the ASP.NET worker process that was running, while
    everything else to do with the application was 1.1

    To fix the problem type the something similar to the following at the
    command prompt:
    C:\WINNT\Microsoft.NET\Framework\v1.1.4322\aspnet_ regiis.exe -i

    Which will install the proper version of the ASP.NET Worker Process.

    Regards,
    Colin.


    "Colin Mackay" <colin_angus_mackay@yahoo.com> wrote in message
    news:%23TFx8B$XDHA.2476@tk2msftngp13.phx.gbl...
    > Hello,
    >
    > We are having problems delploying an ASP.NET application onto a server
    (that
    > is also a domain controller - I don't know if that has anything to do with
    > it).
    >
    > The error message is as seen below. We have tried ensuring that everything
    > has the correct permissions but it still seems to have problems. If you
    have
    > any ideas, or have had this problem before and know how to solve it,
    please
    > let me know.
    >
    > Many thanks,
    > Colin.
    >
    >
    >
    > Server Error in '/' Application.
    > --------------------------------------------------------------------------
    --
    > ----
    >
    > Access to the path "C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Tempor ary
    > ASP.NET Files\root\2135a508\8d69a834" is denied.
    > Description: An unhandled exception occurred during the execution of the
    > current web request. Please review the stack trace for more information
    > about the error and where it originated in the code.
    >
    > Exception Details: System.UnauthorizedAccessException: Access to the path
    > "C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Tempor ary ASP.NET
    > Files\root\2135a508\8d69a834" is denied.
    >
    > ASP.NET is not authorized to access the requested resource. Consider
    > granting access rights to the resource to the ASP.NET request identity.
    > ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5
    or
    > Network Service on IIS 6) that is used if the application is not
    > impersonating. If the application is impersonating via <identity
    > impersonate="true"/>, the identity will be the anonymous user (typically
    > IUSR_MACHINENAME) or the authenticated request user.
    >
    > To grant ASP.NET write access to a file, right-click the file in Explorer,
    > choose "Properties" and select the Security tab. Click "Add" to add the
    > appropriate user or group. Highlight the ASP.NET account, and check the
    > boxes for the desired access.
    >
    > Source Error:
    >
    > An unhandled exception was generated during the execution of the
    > current web request. Information regarding the origin and location of the
    > exception can be identified using the exception stack trace below.
    >
    > Stack Trace:
    >
    > [UnauthorizedAccessException: Access to the path
    > "C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Tempor ary ASP.NET
    > Files\root\2135a508\8d69a834" is denied.]
    > System.IO.__Error.WinIOError(Int32 errorCode, String str) +393
    > System.IO.Directory.InternalCreateDirectory(String fullPath, String
    path)
    > +632
    > System.IO.Directory.CreateDirectory(String path) +195
    >
    System.Web.Compilation.PreservedAssemblyEntry.DoFi rstTimeInit(HttpContext
    > context) +85
    >
    >
    System.Web.Compilation.PreservedAssemblyEntry.Ensu reFirstTimeInit(HttpContex
    > t context) +97
    >
    >
    System.Web.Compilation.PreservedAssemblyEntry.GetP reservedAssemblyEntry(Http
    > Context context, String virtualPath, Boolean fApplicationFile) +29
    >
    System.Web.UI.TemplateParser.GetParserCacheItemFro mPreservedCompilation()
    > +91
    > System.Web.UI.TemplateParser.GetParserCacheItemInt ernal(Boolean
    > fCreateIfNotFound) +148
    > System.Web.UI.TemplateParser.GetParserCacheItemWit hNewConfigPath() +125
    > System.Web.UI.TemplateParser.GetParserCacheItem() +88
    > System.Web.UI.TemplateControlParser.CompileAndGetP arserCacheItem(String
    > virtualPath, String inputFile, HttpContext context) +120
    > System.Web.UI.TemplateControlParser.GetCompiledIns tance(String
    > virtualPath, String inputFile, HttpContext context) +36
    > System.Web.UI.PageParser.GetCompiledPageInstanceIn ternal(String
    > virtualPath, String inputFile, HttpContext context) +43
    > System.Web.UI.PageHandlerFactory.GetHandler(HttpCo ntext context, String
    > requestType, String url, String path) +44
    > System.Web.HttpApplication.MapHttpHandler(HttpCont ext context, String
    > requestType, String path, String pathTranslated, Boolean useAppConfig)
    +699
    >
    >
    System.Web.MapHandlerExecutionStep.System.Web.Http Application+IExecutionStep
    > .Execute() +95
    > System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
    > completedSynchronously) +173
    >
    >
    >
    > --------------------------------------------------------------------------
    --
    > ----
    > Version Information: Microsoft .NET Framework Version:1.1.4322.573;
    ASP.NET
    > Version:1.1.4322.573
    >
    >

    Colin Mackay 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