Click here to Skip to main content
14,694,017 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
Been having issues when releasing to a standalone server, I get the error
The compiler failed with error code -2146232576.
and google is failing me. Anybody knows whats cutting?

The detail compiler output below


c:\windows\system32\inetsrv>C:\Webs\AccessControl\bin\roslyn\csc.exe /t:library /utf8output /nostdlib+ /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET ASP.NET Files\root\deeaff59\c6104229\assembly\dl3\69fe6ab2\a5f26a7f_2626d301\System.Web.Providers.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\deeaff59\c6104229\assembly\dl3\eec9c0b2\3b1c06b0_5f58d301\Microsoft.AI.Agent.Intercept.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\deeaff59\c6104229\assembly\dl3\6e0bcb66\0a7ce5b3_5f58d301\System.Web.Helpers.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\deeaff59\c6104229\assembly\dl3\83e27dd3\27048fea_2526d301\Microsoft.AspNet.FriendlyUrls.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\Framework64\v4.0.30319\Temporary ASP.NET Files\root\deeaff59\c6104229\assembly\dl3\a59c77d4\e56f98fb_2526d301\Microsoft.Owin.Security.Cookies.dll" /R:"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary


What I have tried:

Tried google but not winning i always get
-1073741502
or something diffrent
Posted
Updated 30-Sep-20 20:50pm
Comments
Jochen Arndt 8-Nov-17 2:40am
   
-1073741502 is hex C0000142.
You may search the net for something like "csc error C0000142".
There are some results which might help.

If you get an error message you don't understand, start with google: Google: "the compiler failed with error code "-2146232576" roslyn"[^]

You aren't the first...
   
Please remove 2 package if you're using them:
Microsoft.CodeDom.Providers.DotNetCompilerPlatform
Microsoft.Net.Compilers
It success for me!
   
remove these lines from web config,

<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warninglevel="4" compileroptions="/langversion:default /nowarn:1659;1699;1701">
<compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warninglevel="4" compileroptions="/langversion:default /nowarn:41008 /define:_MYTYPE=\"Web\" /optionInfer+">

   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900