locked
The compiler failed with error code -1073741502 RRS feed

  • Question

  • User653079865 posted

    Hi,

    For a couple of weeks we have this error that pop out after we make the smallest change in any of our websites (for example if I add @Html.Raw("test")) and save, I got the error, in any page on any site. It disappear only after a lots of refresh of the website or IIS reset or start stop AppPool etc to be back again...

    We have:

    • Windows Server 2016 with IIS v10 that manage at this point ~200 websites
    • .NET Framework 4.7.2
    • the server has 128 Gb of RAM and at this point the used memory is at ~47% HDD with Raid 10
    • our websites are build in VB, C# - WebForms and MVC websites

    Things that we have tried and still is not fixed:

    • reinstall the .NET Framework
    • set the AppPool Identity to ApplicationPoolIdentity | Network Server or Custom Account (with admin rights and IIS_user rights etc)
    • increase the Heap Memory as per this article https://blogs.msdn.microsoft.com/friis/2012/09/19/c-compiler-or-visual-basic-net-compilers-fail-with-error-code-1073741502-when-generating-assemblies-for-your-asp-net-site/
    • delete the Temporary ASP.NET / root / files
    • move the Temporary ASP.NET to another location, with full rights for IIS_user, Admin etc
    • use the Roslyn compilers (from nuget)
    • tracing and logs, memory dumps with WinDbg and others - in general from what I could tell from the errors appears that the csc.exe or vsc.exe at some point can't delete some temp files from Temporary ASP.NET but it has all the rights
    • we changed the server :) as on the old one with Windows Server 2012 R2 the error was: Compiler Error Message: The compiler failed with error code 255.

    The same very website works fine on another server (the staging server) no errors whatsoever. So I've run out of ideas of what possible I could do to fix this.

    Any kind of help will be greatly appreciated.

    Cheers!

    Server Error in '/' Application.
    Compilation Error
    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: The compiler failed with error code -1073741502.
    
    
    Show Detailed Compiler Output:
    
    
    C:\Windows\SysWOW64\inetsrv> "C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe" /t:library /utf8output /R:"E:\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cdde02f2\ce001266\assembly\dl3\fc1df0d8\000794bb_9f93d301\itextsharp.dll" /R:"E:\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cdde02f2\ce001266\assembly\dl3\3757ab8b\003e13d0_2c27cf01\System.Web.Optimization.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.dll" /R:"E:\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cdde02f2\ce001266\assembly\dl3\7f86fe2b\0013ed34_8396d201\Microsoft.IdentityModel.Protocol.Extensions.dll" /R:"E:\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cdde02f2\ce001266\assembly\dl3\bdd409ed\0003f474_1733d401\WebMarkupMin.AspNet.Common.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll" /R:"E:\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cdde02f2\ce001266\assembly\dl3\4477f972\000279cc_9277d401\HtmlAgilityPack.dll" /R:"E:\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cdde02f2\ce001266\assembly\dl3\720ad7ed\00f8bfb0_eb7fd401\LibSassHost.dll" /R:"E:\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cdde02f2\ce001266\assembly\dl3\152f4432\41487d43_05b3d401\TiarcWebLibrary.dll" /R:"E:\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cdde02f2\ce001266\assembly\dl3\fac34a50\0048b288_96e8d301\System.Net.Http.Formatting.dll" /R:"E:\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cdde02f2\ce001266\assembly\dl3\f4270690\0032c549_3180d401\BundleTransformer.SassAndScss.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ComponentModel.DataAnnotations\v4.0_4.0.0.0__31bf3856ad364e35\System.ComponentModel.DataAnnotations.dll" /R:"E:\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cdde02f2\ce001266\assembly\dl3\557eb263\00c19797_a952d001\IronRuby.Libraries.dll" /R:"E:\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cdde02f2\ce001266\assembly\dl3\d0a1b078\006641c2_50d9ce01\CaptchaMvc.dll" /R:"E:\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cdde02f2\ce001266\assembly\dl3\c671b455\0020a9ef_9fefce01\ServiceStack.Text.dll" /R:"E:\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cdde02f2\ce001266\assembly\dl3\c9b00db8\00f20228_675ad401\BundleTransformer.Core.dll" /R:"E:\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cdde02f2\ce001266\App_global.asax.qmcalnb2.dll" /R:"C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.IdentityModel\v4.0_4.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"E:\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cdde02f2\ce001266\assembly\dl3\2fb06369\0010166c_96e8d301\System.Web.Mvc.dll" /R:"E:\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cdde02f2\ce001266\assembly\dl3\429babd3\00f848c1_29aece01\Antlr3.Runtime.dll" /R:"E:\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cdde02f2\ce001266\assembly\dl3\571097ee\00d05b8f_b4cdcf01\WebMarkupMin.Mvc.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activities.dll" /R:"E:\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cdde02f2\ce001266\assembly\dl3\a242a0c8\00f8350e_97e8d301\System.Web.WebPages.Razor.dll" /R:"E:\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cdde02f2\ce001266\assembly\dl3\5b980959\0064199a_688ecc01\CardsaveDotNet.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.DataSetExtensions\v4.0_4.0.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll" /R:"E:\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cdde02f2\ce001266\assembly\dl3\c7f39fc7\00f8350e_97e8d301\System.Web.WebPages.Deployment.dll" /R:"E:\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cdde02f2\ce001266\assembly\dl3\3979b580\3eaa872f_05b3d401\WufooSharp.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_MSIL\System.Activities\v4.0_4.0.0.0__31bf3856ad364e35\System.Activities.dll" /R:"E:\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cdde02f2\ce001266\assembly\dl3\581b43e7\005bc1f5_86c3d301\Newtonsoft.Json.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_32\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"E:\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cdde02f2\ce001266\assembly\dl3\1fd14d4a\00f8350e_97e8d301\System.Web.WebPages.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.WorkflowServices\v4.0_4.0.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"E:\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cdde02f2\ce001266\assembly\dl3\d04e1d35\00c19797_a952d001\Microsoft.Scripting.dll" /R:"E:\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cdde02f2\ce001266\assembly\dl3\687393ee\00c19797_a952d001\Microsoft.Dynamic.dll" /R:"E:\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cdde02f2\ce001266\assembly\dl3\174f80f1\004c3553_426acd01\Microsoft.Web.Infrastructure.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Services\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"E:\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cdde02f2\ce001266\assembly\dl3\bad7b4e9\00662847_1037d201\System.Runtime.InteropServices.RuntimeInformation.dll" /R:"E:\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cdde02f2\ce001266\assembly\dl3\41a3033d\00cb2743_ec75d401\WebMarkupMin.Core.dll" /R:"E:\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cdde02f2\ce001266\assembly\dl3\ef79473a\00f945ad_7caccf01\MiniProfiler.dll" /R:"E:\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cdde02f2\ce001266\assembly\dl3\29649853\00ec95d4_e74bd301\EntityFramework.SqlServer.dll" /R:"E:\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cdde02f2\ce001266\assembly\dl3\d8c52adf\00a6d586_1733d401\WebMarkupMin.AspNet4.Mvc.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.DynamicData\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.DynamicData.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll" /R:"E:\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cdde02f2\ce001266\assembly\dl3\f6ef14c7\22192632_06b3d401\TiarcWeb.dll" /R:"E:\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cdde02f2\ce001266\assembly\dl3\c60bb8e5\006a66fe_60b9d301\FlickrNet.dll" /R:"E:\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cdde02f2\ce001266\assembly\dl3\b485003a\004b384d_3218cf01\WebGrease.dll" /R:"E:\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cdde02f2\ce001266\assembly\dl3\ec064e70\002d88bc_6efacd01\nQuant.Core.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.ApplicationServices\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.ApplicationServices.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"E:\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cdde02f2\ce001266\assembly\dl3\466c5b6a\002c647a_96e8d301\System.Web.Razor.dll" /R:"E:\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cdde02f2\ce001266\assembly\dl3\0a43972e\00e25fd7_96e8d301\System.Web.Http.WebHost.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.Entity\v4.0_4.0.0.0__b77a5c561934e089\System.Data.Entity.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"E:\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cdde02f2\ce001266\assembly\dl3\4d044b96\00c19797_a952d001\IronRuby.dll" /R:"E:\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cdde02f2\ce001266\assembly\dl3\0cc4991b\00779f8a_9cedcd01\DDay.iCal.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Web\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"E:\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cdde02f2\ce001266\assembly\dl3\d709376d\638ac81f_06b3d401\TiarcWebMVCLibrary.dll" /R:"E:\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cdde02f2\ce001266\assembly\dl3\15424ac6\00c5df80_1733d401\WebMarkupMin.AspNet4.Common.dll" /R:"E:\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cdde02f2\ce001266\assembly\dl3\1aee5a70\00401e36_8396d201\System.IdentityModel.Tokens.Jwt.dll" /R:"E:\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cdde02f2\ce001266\assembly\dl3\649d2156\00ba083a_0295d301\MailChimp.dll" /R:"E:\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cdde02f2\ce001266\assembly\dl3\f7267292\00c23488_b4cdcf01\WebMarkupMin.Web.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.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll" /R:"E:\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cdde02f2\ce001266\assembly\dl3\d529dd9a\00bf64d3_e74bd301\EntityFramework.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activation\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activation.dll" /R:"E:\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cdde02f2\ce001266\assembly\dl3\3a697c4e\000a9e94_96e8d301\System.Web.Http.dll" /R:"E:\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cdde02f2\ce001266\assembly\dl3\aa26f18c\006b4f5d_8979cf01\MiniProfiler.Mvc.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Extensions\v4.0_4.0.0.0__31bf3856ad364e35\System.Web.Extensions.dll" /R:"E:\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cdde02f2\ce001266\assembly\dl3\488a1ea8\0000ae12_e875d001\Facebook.dll" /R:"E:\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cdde02f2\ce001266\assembly\dl3\3265e9c4\00f8350e_97e8d301\System.Web.Helpers.dll" /out:"E:\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cdde02f2\ce001266\App_Web_homepage.cshtml.1f152818.u92dy3jl.dll" /D:DEBUG /debug+ /optimize- /w:4 /nowarn:1659;1699;1701;612;618 /warnaserror-  "E:\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cdde02f2\ce001266\App_Web_homepage.cshtml.1f152818.u92dy3jl.0.cs" "E:\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\cdde02f2\ce001266\App_Web_homepage.cshtml.1f152818.u92dy3jl.1.cs"
    
    
    
    
    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3282.0

    Friday, February 22, 2019 9:53 AM

All replies

  • User1724605321 posted

    Hi FlorinParaschivescu ,

    Although you have set admin rights , have you tried to change the AppPool Identity  to the highest  local system to exclude the permission relate issue .

    Best Regards,

    Nan Yu

    Monday, February 25, 2019 2:06 AM
  • User653079865 posted

    Hi Nan Yu,

    To be honest I'm not quite sure what do you mean by that. I have tried to set the AppPool Identity to run under all possible accounts (Local Service | Local User | AppPull (created when the website was created) | Network Service and custom account with full access on Admins, IIS_USER etc. No luck...

    Cheers

    Monday, February 25, 2019 1:27 PM
  • User753101303 posted

    Hi,

    Try a search with 0xC0000142 csc (the former being the hexadecimal error number).

    Nothing really conclusive. Try perhaps https://forums.asp.net/t/2052175.aspx?Kernelbase+dll+error

    It seems you could perhaps find more details in the Windows event log...

    Monday, February 25, 2019 1:49 PM