CS0016: Could not write to output file

Discussion in 'ASP .Net Security' started by Mark A. Richman, Mar 21, 2006.

  1. I get the following error when browsing my default site or SharePoint Central Administration, immediately following a successful install of stsv2.exe:

    Compiler Error Message: CS0016: Could not write to output file 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\245cb86b\34627c1\App_global.asax.xv4voalg.dll' -- 'The directory name is invalid. '

    The following KB article does not fix my problem: http://support.microsoft.com/default.aspx?scid=kb;en-us;825791 and only seems to apply to ASP.NET 1.1 and 1.0 anyway.

    I've granted NETWORK SERVICE Full Control over the Temporary ASP.NET Files folder.

    What else can I do?

    Here's my event log:

    Event Type: Warning
    Event Source: ASP.NET 2.0.50727.0
    Event Category: Web Event
    Event ID: 1310
    Date: 3/20/2006
    Time: 10:28:12 AM
    User: N/A
    Computer: RICHMAN
    Description:
    Event code: 3007
    Event message: A compilation error has occurred.
    Event time: 3/20/2006 10:28:12 AM
    Event time (UTC): 3/20/2006 3:28:12 PM
    Event ID: 9a0d7adf030e4965b3206989edc0c4c6
    Event sequence: 3
    Event occurrence: 1
    Event detail code: 0

    Application information:
    Application domain: /LM/W3SVC/3/Root-1-127873420877152082
    Trust level: Full
    Application Virtual Path: /
    Application Path: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\60\template\admin\1033\
    Machine name: RICHMAN

    Process information:
    Process ID: 2548
    Process name: w3wp.exe
    Account name: NT AUTHORITY\NETWORK SERVICE

    Exception information:
    Exception type: HttpCompileException
    Exception message: (0): error CS0016: Could not write to output file 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\245cb86b\34627c1\App_global.asax.yooiaaem.dll' -- 'The directory name is invalid. '

    Request information:
    Request URL: http://localhost:4617/default.aspx
    Request path: /default.aspx
    User host address: 127.0.0.1
    User:
    Is authenticated: False
    Authentication Type:
    Thread account name: NT AUTHORITY\NETWORK SERVICE

    Thread information:
    Thread ID: 1
    Thread account name: NT AUTHORITY\NETWORK SERVICE
    Is impersonating: False
    Stack trace: at System.Web.Compilation.AssemblyBuilder.Compile()
    at System.Web.Compilation.BuildProvidersCompiler.PerformBuild()
    at System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult(Boolean isPrecompiledApp)
    at System.Web.Compilation.BuildManager.CompileGlobalAsax()
    at System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()
    at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters)


    Custom event details:

    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.


    I have never seen this error before, and it may be meaningful:

    Event Type: Error
    Event Source: .NET Runtime
    Event Category: None
    Event ID: 1022
    Date: 3/20/2006
    Time: 10:28:07 AM
    User: N/A
    Computer: RICHMAN
    Description:
    ..NET Runtime version 2.0.50727.42 - Failed to CoCreate profiler.

    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.


    --
    Mark A. Richman
     
    Mark A. Richman, Mar 21, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. John Soulis [MSFT]

    RE: first web application and cs0016

    John Soulis [MSFT], Apr 1, 2004, in forum: ASP .Net
    Replies:
    5
    Views:
    1,579
    Marc Pelletier
    Apr 4, 2004
  2. FrzzMan[
    Replies:
    3
    Views:
    1,697
    FrzzMan[
    May 30, 2004
  3. =?Utf-8?B?VmlrcmFt?=
    Replies:
    1
    Views:
    4,770
    Guest
    Jan 12, 2005
  4. Replies:
    1
    Views:
    3,569
  5. =?Utf-8?B?SUtkZXY=?=

    CS0016: Could not write to output file...

    =?Utf-8?B?SUtkZXY=?=, Feb 15, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    3,524
    =?Utf-8?B?SUtkZXY=?=
    Feb 15, 2006
Loading...

Share This Page