Thursday, July 2, 2009

Compiler Error Message: BC31019: Unable to write to output file 'c:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET

After installing Instant Archive Viewer and browsing the site you may encounter a Compiler Error message: Compiler Error Message: BC31019: Unable to write to output file 'c:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET
Here are some possible causes for the error and solutions for each:
1. Cause:
If you run Index Server (Cisvc.exe), then Index Server may rescan the Temporary ASP.NET Files directory while it requests a Microsoft ASP.NET page.

Disable the Microsoft Index Services for the temp folder:;en-us;329065#appliesto

2. Cause: Temp Environment variable issue

Change your temp folder directory by clicking on advanced tab from
system settings and environment variables.

3. Cause:
IIS 6.0 and ASP.NET are installed on the server before the server is promoted to a domain controller.
1. cDrive:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
2. Add the appropriate permissions to the Network Service group for the Temporary ASP.NET Files folder. To do this, type the following line, and then press ENTER: aspnet_regiisir

4. Cause:
A web site which is set (in the web.config file) to impersonate a user which does not have access to the logged in user's temp directory cannot be published

Remove the impersonation identity from web.config, and either add it back manually upon deployment, or use Web Deployment Projects to automatically add back the in the impersonation identity to web.config during publishing. Note that on the server you will also need to grant read/write permissions to the impersonated identity to the Temporary ASP.NET Files folder.

5. Cause:
something strange with your TEMP environment variable?
Try running the application as an administrator by right clicking
on ITIMArchiveviews/run as..:

No comments: