views:

2786

answers:

8

I'm running IIS 6.0 on Windows 2003 and started getting this error:

Compiler Error Message: CS0016: Could not write to output file 'c:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root\7382c13f\ea9b3ff7\App_global.asax.zodyof_q.dll' -- 'The directory name is invalid. '

I've checked all the permissions, and everything is as it needs to be - plus, the error message doesn't mention permissions. I've tried the following already:

  • Following the instructions from this [outdated] KB article: http://support.microsoft.com/kb/825791/en-us
  • Repairing the .NET Framework v3.5 installation, then rebooting
  • Deleting the contents of c:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root, then running iisreset
  • Resetting the permissions on c:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\root, then running iisreset
  • Resetting the permissions on c:\WINDOWS\TEMP, then running iisreset.

Any suggestions?


Other notes/responses:

  • The Indexing service is disabled.
+1  A: 

Use SysInternals FileMon (or ProcMon if you like) to see the real file it is bitching about. You can restrict it to just monitoring IIS if you have a busy server, although I'd start with all processes and just capture a couple of seconds of output.

Before running, ensure IIS has been reset using iisreset /restart so that the error is not cached from before.

Ryan

Ryan ONeill
A: 

Have to tried disabling windows Indexing Service for the temporary asp.net files folder

RandomNoob
+1  A: 

OK, when you repaired the installation do you mean ASPNET_REGIIS -u / ASPNET_REGIIS -i ? that would fix disk permissions.

It might be your virusscanner; exclude your .net temporary folders / inetpub if you can and if its safe.

u07ch
+2  A: 

I've found an answer that is applicable if you've installed ANTS profiler and it crashed while profiling. This KB Article describes one of the solutions:

http://www.red-gate.com/supportcenter/Content.aspx?p=ANTS%20Profiler&c=knowledgebase\ANTS_Profiler\KB200903000362.htm

NilObject
A: 

I received the same error. The anti-virus/security software (McAffee Viruscan Enterprise) was preventing visual studio tool csc.exe to dynamically compile code and create the entity data model dll in the directory folder above which falls under the windows directory folder. There is a section in McAffee called access protection that has a rule called Maximum Protection that prohibits creating executable files in the windows directory folder. Simply temporary disable the rule or access protection to compile the website successfully.

A: 

I had the same error running IIS 7.0 / Vista Ultimate / .NET 2.0 Web App. After looking for advices in google I tried setting "Full Control" permissions on temporary folder for NETWORK SERVICE user (right-click on folder c:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727, Properties, Security tab) and turning off antivirus and UAC, but it didn't help :(

But this worked as magic: Open IIS Manager -> Select "View Application Pools" from right menu -> Select "Advanced Settings" -> Set your username (and password) in "Identity" property -> Restart IIS

PS If this doesn't work, check additionally that you're an owner of c:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727 folder (right-click, Properties, Security tab, Advanced, Owner tab)

ringo-ring
A: 

Here is the final solution :)


Step 1) First give all the permission to ASPNET account , NETWORK SERVICE account to "ASP.NET Temporary files" folder under whichever the framework it is using. like C:\windows\microsoft.net\framework\v2.xxx\ASP.NET Temporary files step 2) Check the temporary folder configured for your machine under environment variables for TEMP and TEMP. For that folder also give all the permission to ASPNET account , NETWORK SERVICE accout. Reset the IIS It should be working fine.

Prabhas
A: 

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0433: The type 'ASP.headerinfo_ascx' exists in both 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\f60e1f76\afa3826e\App_Web_headerinfo.ascx.cdcab7d2.snkwgmio.dll' and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\f60e1f76\afa3826e\App_Web_tlzpjvkj.dll'

basha
how to solve that above problem.
basha