CS0016: Could not write to output file



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


Relevant Pages

  • RE: System.Web.AspNetHostingPermission - all files are local.
    ... Request for the permission of type ... Thread account name: RND\Backhaulwebservice ... HostingEnvironmentParameters hostingParameters) ...
    (microsoft.public.inetserver.iis.security)
  • RE: ASP.NET keeps forcing us to restart IIS
    ... coded your site to prevent injection attacks, then you can turn off request ... Exception type: HttpRequestValidationException ... Thread account name: NT AUTHORITY\NETWORK SERVICE ... includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) ...
    (microsoft.public.dotnet.framework.aspnet)
  • ASP.NET keeps forcing us to restart IIS
    ... Event code: 3003 ... Exception type: HttpRequestValidationException ... Request URL: http://store.windward.net/register.aspx ... Thread account name: NT AUTHORITY\NETWORK SERVICE ...
    (microsoft.public.dotnet.framework.aspnet)
  • Web page errors
    ... We have a web server that hosts an application that is throwing up the ... Event code: 3005 Event message: An unhandled exception has occurred. ... Progress: Logging the Page Request; ... Thread ID: 1 Thread account name: XTRANET\extranet Is impersonating: ...
    (microsoft.public.sharepoint.portalserver.development)
  • Rejected Safe Mode action : Microsoft Office Outlook.
    ... An unhandled exception has occurred. ... Request URL: http://localhost/Default.aspx ... Thread account name: TECHSERV2000\Dkandersack ... sourceControl, String eventArgument) ...
    (microsoft.public.office.developer.outlook.vba)