Current Identity permission problems with WS2003

Last post 02-01-2008 3:21 PM by robinwilliams. 20 replies.

Sort Posts:

  • Current Identity permission problems with WS2003

    05-06-2005, 4:25 PM
    • Loading...
    • levyuk
    • Joined on 04-22-2005, 8:04 PM
    • Wales, Uk
    • Posts 36

    Hi,

    I have been working with beta 2 for a while now and have got most problems out of the way. Until today. I installed Active Directory on my Windows Server 2003 machine so that I could use FTP user isolation. Since then I have been unable to browse my asp.net 2 pages. The error I get follows.

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

    The current identity (NT AUTHORITY\NETWORK SERVICE) does not have write access to 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Temporary ASP.NET Files'.
    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.Web.HttpException: The current identity (NT AUTHORITY\NETWORK SERVICE) does not have write access to 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Temporary ASP.NET Files'.

    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:


    [HttpException (0x80004005): The current identity (NT AUTHORITY\NETWORK SERVICE) does not have write access to 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Temporary ASP.NET Files'.]
       System.Web.HttpRuntime.InitFusion() +3481567
       System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags) +158

    [HttpException (0x80004005): The current identity (NT AUTHORITY\NETWORK SERVICE) does not have write access to 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Temporary ASP.NET Files'.]
       System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +3427543
       System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +85
       System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +147

     


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

     

    I have tried looking around the internet for answers but to no avail. Please can someone help because as with most computer related problems, it's driving me mad.

    Thanks

  • Re: Current Identity permission problems with WS2003

    05-06-2005, 8:46 PM
    Answer
    • Loading...
    • josere
    • Joined on 03-23-2005, 7:44 PM
    • Posts 95

    Try this from the framework directory (Usually c:\windows\microsoft.net\framework\v2.0.50215):

    aspnet_regiis -ga "NT AUTHORITY\NETWORK SERVICE"

    The installation of Active Directory might have changed the ACLs of the framework dir.

    You migh also do this:

    aspnet_regiis -ga IUSR_<machinename>

    in case you use impersonation on any application (<system.web><identity impersonation="true" /><system.web> on the web.config).

    Jose Reyes

    Microsoft Corporation

    "This posting is provided "AS IS" with no warranties, and confers no rights."
  • Re: Current Identity permission problems with WS2003

    01-14-2006, 1:23 PM
    • Loading...
    • steven_g
    • Joined on 01-14-2006, 6:09 PM
    • Posts 2

    I am experiencing the exact same issue with VS2005/.NET2.0.50727 on my local development machine running on Windows XP Pro SP2.  I installed VS2005/.NET2.0 along side my VS2003/.NET1.1 installation.  After the installation, the existing projects on the 1.1 platform continue work fine.  However I get the following error when accessing a simple ASP.NET 2.0 page:

    The current identity (DRFJMFWXP70417\ASPNET) does not have write access to 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files'.
    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.Web.HttpException: The current identity (DRFJMFWXP70417\ASPNET) does not have write access to 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files'.

    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:


    [HttpException (0x80004005): The current identity (DRFJMFWXP70417\ASPNET) does not have write access to 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files'.]
       System.Web.HttpRuntime.SetUpCodegenDirectory(CompilationSection compilationSection) +744
       System.Web.HttpRuntime.HostingInit(HostingEnvironmentFlags hostingFlags) +225

    [HttpException (0x80004005): The current identity (DRFJMFWXP70417\ASPNET) does not have write access to 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files'.]
       System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +936
       System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +90
       System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +150

     


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

    The security tab for the Temporary ASP.NET Files shows the ASPNET Machine Account having full control including write permissions.  I also attempted both of Jose's recommendations using "aspnet_regiis -ga", plus I ran the same command for the <machine name>\ASPNET user, but I still get the same error.

    Many thanks in advance to anyone who can assist with this issue,

    Steve

     

  • Re: Current Identity permission problems with WS2003

    01-16-2006, 6:29 PM
    • Loading...
    • steven_g
    • Joined on 01-14-2006, 6:09 PM
    • Posts 2

    No need to research this issue any further.  We discovered that the Proventia Desktop (a.k.a. BlackIce firewall) was some how blocking access to this folder from IIS with .NET 2.0.  Not sure why it didn't give me trouble with .NET 1.1.

    We found that disabling that firewall fixed the problem.  We are now researching a black ice configuration that will allow our developers to continue working.

  • Re: Current Identity permission problems with WS2003

    01-17-2006, 10:35 PM
    • Loading...
    • noonpei
    • Joined on 01-18-2006, 3:31 AM
    • Posts 3

    I installed the VS2005, and the same problem happened. I attempted the all the methods both disable firewall and aspnet_regiis, but no works. can not find out the reason.

    hope sb can help us solve this problem!

  • Re: Current Identity permission problems with WS2003

    01-17-2006, 11:40 PM
    • Loading...
    • noonpei
    • Joined on 01-18-2006, 3:31 AM
    • Posts 3
    got it! the only thing we have to do is that we should install and config the frontpage sever extention 2002 for the default web site!
  • Re: Current Identity permission problems with WS2003

    01-18-2006, 10:06 PM
    • Loading...
    • zhouxingchi
    • Joined on 01-19-2006, 3:05 AM
    • Posts 9
    i am facing the same prob. anyone please help!!!!
  • Re: Current Identity permission problems with WS2003

    01-19-2006, 2:48 PM
    • Loading...
    • zhouxingchi
    • Joined on 01-19-2006, 3:05 AM
    • Posts 9
    hi can you explain how to install front page extension n where to get it. thanks, tis bug has been killing me
  • Re: Current Identity permission problems with WS2003

    01-19-2006, 3:44 PM
    • Loading...
    • noonpei
    • Joined on 01-18-2006, 3:31 AM
    • Posts 3

    hi

    just in your IIS manager, on web site->default web site, right click, choose all tasks, you will see the install sever extention 2002. click it and follow the steps, you will make it. but still need to enter the username and password when you want to access the webpages, don't know why!

  • Re: Current Identity permission problems with WS2003

    01-27-2006, 4:51 AM
    • Loading...
    • zhouxingchi
    • Joined on 01-19-2006, 3:05 AM
    • Posts 9

    Thank noonpei,

    I eventually resolved my problem by re-install my windows. There were some articles about conflicts b/w domain controllers and aspnet 1.1, I am in a school network, within a domain. Therefore, I guess my prob is caused by my school domain controller.

    In fact, i did fresh installation twice to make sure that it is the domain controller causing the problem.

    My configuration is , Winxp service pack 2, VS 2005, IIS 5.1.

    Also, remember disjoin the domain doesnt help. I tried that. Only way for me so far is to reinstalled. This also solved the conflicting port problem in VS2005 for me.

     

    noonpei wrote:

    hi

    just in your IIS manager, on web site->default web site, right click, choose all tasks, you will see the install sever extention 2002. click it and follow the steps, you will make it. but still need to enter the username and password when you want to access the webpages, don't know why!

  • Re: Current Identity permission problems with WS2003

    02-16-2006, 2:16 PM

    hi guys

     

    try this this:

     

    aspnet_regiis -ga "NT AUTHORITY\NETWORK SERVICE"

     

    -ga   =  grant access

    it worked for me.

  • Re: Current Identity permission problems with WS2003

    08-11-2006, 3:27 AM
    • Loading...
    • gabber2k
    • Joined on 08-11-2006, 7:25 AM
    • Posts 1
    Just reinstall ASP.net by invoking:

    aspnet_regiis.exe -i
  • Re: Current Identity permission problems with WS2003

    08-18-2006, 5:48 AM
    Thanks noonpei, I had this exact problem and did as you said.  The problem is now fixed.  This had been bugging me for a while.
  • Re: Current Identity permission problems with WS2003

    10-10-2006, 1:30 PM
    • Loading...
    • Dominique
    • Joined on 08-04-2006, 9:27 PM
    • Culver City, CA
    • Posts 100
    noonpei:

    hi

    just in your IIS manager, on web site->default web site, right click, choose all tasks, you will see the install sever extention 2002. click it and follow the steps, you will make it. but still need to enter the username and password when you want to access the webpages, don't know why!

    Hello,

    I just upgraded from VS 2003 to VS 2005.

    I do not see any reference to "Server extension 2002" I have "Check Server Extensions" and when I launch it I have an error:

    " the _vti_pvt folder does not exist. Creating _vti_pvt. After this folder is created, re-installthe Front-Page Server Extensions on this web."

    "CORRECTED"

    But still I have the same error when loading my page. It is working fine in VS 2003???

    "The current identity (DOMINIQUE\ASP.NET) does not have write access to 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files'."

    Thanks,
    Dom

    Dom
  • Re: Current Identity permission problems with WS2003

    10-10-2006, 2:06 PM
    • Loading...
    • Dominique
    • Joined on 08-04-2006, 9:27 PM
    • Culver City, CA
    • Posts 100

    gabber2k:
    Just reinstall ASP.net by invoking:

    aspnet_regiis.exe -i

     

    This has fixed my main issue of not accessing asp.net 2.0

     Now i am working on specific issues during the conversion 2003-2005

    Class 'WebForm1' and class 'WebForm1', declared in C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP NET Files\helpdesk_main\291fef481bb352a23\App_Code.sxa_gojo.4.vb'. conflict in namespace 'Helpdesk_main'.

    Where should I look for more information?

    Thanks,

    Dom
Page 1 of 2 (21 items) 1 2 Next >