Write a custom directory title here
After the win10 update yesterday, the ASP.net program I wrote was published to the server and prompted a compilation failure.
The specific errors are as follows:
It took most of a day to find the specific cause of the error, but it is basically determined to be caused by hesitation in updating the Windows system. But after I uninstalled all the updates, the problem still didn't resolve.
Later, I searched on the Internet and deleted the compilers node in web.config and the text under the node based on other people's experience. The problem is solved .
<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+" />
</compilers>
The real reason may be that the .NET Framework version referenced after the update has changed.
The materials referenced during this period are as follows:
[C#.NET] After publishing and deploying to the server, the compiler error message: The compiler failed with the error code -2146232576