locked
Why Network Service a/c require read/write access to c:/windows/temp folder on Windows 2008 server & ASP.net RRS feed

  • Question

  • User972392188 posted

    I've installed my asp.net application (compiled with ASP.net 2.0) on Windows Server 2008. But, every request fails with

    Exception information:

        Exception type: HttpCompileException

        Exception message: vbc : Fatal (0): error BC2000: compiler initialization failed unexpectedly: Access is denied. 

     

    Thread information:

        Thread ID: 10

        Thread account name: NT AUTHORITY\NETWORK SERVICE

        Is impersonating: False

        Stack trace:    at System.Web.Compilation.AssemblyBuilder.Compile()

       at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()

    This works well if i grant access to NetworkService account on Temp folder but, can't do so due to some limitations.

    I want to know why NetworkService requires access to C:\Windows\Temp folder in Win 2008 server whereas, same application work fine on Windows 2003 server.

     

    Monday, November 2, 2009 6:31 AM

All replies

  • User-1659704165 posted

    Hi,

    c:/windows/temp

    Try Giving Complete Rights Temp Folder and Then Chk

    Monday, November 2, 2009 11:05 AM
  • User972392188 posted

    yeah.... it works after giving full access. Bu,t i want know the reason behind giving full access. So, that i can avoid doing so.

    Bcos same thing work well in WinServer 2003 

    Tuesday, November 3, 2009 12:12 AM
  • User-532524509 posted

    Read this Article

    http://support.microsoft.com/kb/812614 

    Tuesday, November 3, 2009 7:11 AM
  • User-1252206308 posted

    try using in system.web section of web.config

    <identity impersonate="true"/>

    Tuesday, November 3, 2009 8:43 AM
  • User972392188 posted

    nope no help with identity tag.

    Can we know why c:\windows\temp\ is used in this case whereas it should ASP.Net temp folder. 

    Wednesday, November 4, 2009 8:14 AM