CS0433: Type "ASP.global_asax" also exists in "c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Fil

Compiler error message: CS0433: Type "ASP.global_asax" also exists in "c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\bf613b9a\da36b89c\assembly\dl3\b43908f9\ a0d2bfc2_25cece01\App_global.asax.DLL" and "c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporar solutions

 

 

After the website is published, it is uploaded to the server and the following error

Error message:

Error 1 类型“ASP.global_asax”同时存在于“c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/eimsweb/6c5efeba/eecd7157/assembly/dl3/a587c019/00f31d7d_3d90ca01/App_global.asax.DLL”和“c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/eimsweb/6c5efeba/eecd7157/App_global.asax.tc6qmqbj.dll”中 c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/eimsweb/6c5efeba/eecd7157/App_Web_evehmkw_.0.cs 137 

 

The online solutions are:

1. Delete files in Temporary ASP.NET Files

Solution : Empty the C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files temporary folder

2. Delete App_global.asax.compiled and App_global.asax.dll in the bin directory

Solution : server

 

 

Have not resolved it depends on the permissions 

1. The usual solution: The reason is that the Temp directory under the system directory does not have corresponding permissions. The specific operation is as follows: C:\Windows\temp-->Properties-->Security-->Edit-->Add NETWORK The read and write permissions of the SERVICE user can be solved.

 

2. Open the c drive of the server system, open the window, right-click the temp attribute to securely edit and add IIS_IUSRS user control permissions to add modification and write permissions. This is a solution for Windows Server 2008 R2 Standard Edition SP1 64-bit Chinese Edition. (Mine is this problem. This is solved, the above network service does not need to be)
 

 

Guess you like

Origin blog.csdn.net/cao919/article/details/103226894