21 [Fix]-Compiler Error Message The compiler failed with error code -5324 - wikitechy.com

[Fix]-Compiler Error Message The compiler failed with error code -532462766

Wikitechy | 17499 Views | asp.net | 28 May 2016

 

Scenario:

An error occurs when publishing the website. But the same works well with localhost.

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. 

Error:

The compiler failed with error code -1073741502.

Detailed Compiler Output:

C:\Windows\SysWOW64\inetsrv> "C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe" /t:library /utf8output /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\75855fbd\1e953b27\assembly\dl3\2689d6b5\f0791420_961fcc01\wnvhtmlconvert.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_32\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Entity\v4.0_4.0.0.0__b77a5c561934e089\System.Web.Entity.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Web\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.IdentityModel\v4.0_4.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0

Reason:

There must be a permission error in the local system that occurs when csharp compiler (csc.exe) could not access resources and source codes.

Fix 1:

Modify the application pool identity from "Local system" to "ApplicationPoolIdentity" by following steps given at: http://learn.iis.net/page.aspx/624/application-pool-identities/

Fix 2:

Delete files from the path:  

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files (The version in the current system is 4.0.30319. Select the appropriate version according to your machine).

Fix 3:

Similar Error: "An error occurred during the compilation of a resource required to service this request. Compiler Error Message: The compiler failed with error code 255."

The fix is to terminate the processes "VBCSCompiler.exe", as it can cause issues when the application is unable to build because of the fact that some packages could not be moved to the bin folder.

Fix 4:

Go to IIS Manager -> advanced settings of the Application Pool. Set "Process Model > Load User Profile" to the value "True".







Workshop

Bug Bounty
Webinar

Join our Community

Advertise
<