Compiler Error Message: The compiler failed with error code -2146232576
Compiler Error Message: The compiler failed with error code -2146232576
Please help me!I can't find any solution for this issue
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 -2146232576.
Show Detailed Compiler Output:
c:windowssystem32inetsrv>C:Workpacessagote.comWedding3binroslyncsc.exe /t:library /utf8output /nostdlib+ /R:"C:WindowsMicrosoft.NETFramework64v4.0.30319mscorlib.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Runtimev4.0_4.0.0.0__b03f5f7f11d50a3aSystem.Runtime.dll" /R:"C:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Filesroot5f9ae3e7fb951622assemblydl3470114760fbf29a_4bc5d201Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Configurationv4.0_4.0.0.0__b03f5f7f11d50a3aSystem.Configuration.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystemv4.0_4.0.0.0__b77a5c561934e089System.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILMicrosoft.CSharpv4.0_4.0.0.0__b03f5f7f11d50a3aMicrosoft.CSharp.dll" /R:"C:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Filesroot5f9ae3e7fb951622assemblydl33e4699ee0d223f3_984fd201Microsoft.AI.ServerTelemetryChannel.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_64System.EnterpriseServicesv4.0_4.0.0.0__b03f5f7f11d50a3aSystem.EnterpriseServices.dll" /R:"C:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Filesroot5f9ae3e7fb951622assemblydl3e44922d60ae0f0a_9e10ce01Antlr3.Runtime.dll" /R:"C:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Filesroot5f9ae3e7fb951622assemblydl33e9cfada00ff382_10aece01WebGrease.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.IdentityModelv4.0_4.0.0.0__b77a5c561934e089System.IdentityModel.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Web.Servicesv4.0_4.0.0.0__b03f5f7f11d50a3aSystem.Web.Services.dll" /R:"C:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Filesroot5f9ae3e7fb951622assemblydl3a72ce40705b39b8_5fcbcc01Microsoft.Web.Infrastructure.dll" /R:"C:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Filesroot5f9ae3e7fb951622assemblydl32d4793060e7c43f_4550d201Microsoft.AI.Web.dll" /R:"C:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Filesroot5f9ae3e7fb951622assemblydl3eeb7a29f04382d7_743ad001System.Web.Helpers.dll" /R:"C:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Filesroot5f9ae3e7fb951622assemblydl374e8ab62088f21e_984fd201Microsoft.ApplicationInsights.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Activitiesv4.0_4.0.0.0__31bf3856ad364e35System.Activities.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.ServiceModel.Activitiesv4.0_4.0.0.0__31bf3856ad364e35System.ServiceModel.Activities.dll" /R:"C:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Filesroot5f9ae3e7fb951622assemblydl3aeb27190003c034_e94ad201Microsoft.AI.Agent.Intercept.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Web.DynamicDatav4.0_4.0.0.0__31bf3856ad364e35System.Web.DynamicData.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Runtime.Serializationv4.0_4.0.0.0__b77a5c561934e089System.Runtime.Serialization.dll" /R:"C:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Filesroot5f9ae3e7fb951622assemblydl3fdddc2aa0363de7_0227cf01System.Web.Optimization.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.ServiceModelv4.0_4.0.0.0__b77a5c561934e089System.ServiceModel.dll" /R:"C:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Filesroot5f9ae3e7fb951622assemblydl385c04ee509fcac3_4450d201Microsoft.AI.DependencyCollector.dll" /R:"C:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Filesroot5f9ae3e7fb951622assemblydl3c3f718db049d671_4550d201Microsoft.AI.WindowsServer.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_64System.Datav4.0_4.0.0.0__b77a5c561934e089System.Data.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Web.ApplicationServicesv4.0_4.0.0.0__31bf3856ad364e35System.Web.ApplicationServices.dll" /R:"C:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Filesroot5f9ae3e7fb951622assemblydl33aa08bcf049d671_4550d201Microsoft.AI.PerfCounterCollector.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Xmlv4.0_4.0.0.0__b77a5c561934e089System.Xml.dll" /R:"C:WindowsMicrosoft.NETFramework64v4.0.30319mscorlib.dll" /R:"C:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Filesroot5f9ae3e7fb951622assemblydl382f865b1e2cbec79_ab28d301Wedding.dll" /R:"C:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Filesroot5f9ae3e7fb951622assemblydl330e0ddbb07adf92_1fafcf01Newtonsoft.Json.dll" /R:"C:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Filesroot5f9ae3e7fb951622assemblydl362bfafb104382d7_743ad001System.Web.WebPages.Deployment.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.ServiceModel.Activationv4.0_4.0.0.0__31bf3856ad364e35System.ServiceModel.Activation.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.ServiceModel.Webv4.0_4.0.0.0__31bf3856ad364e35System.ServiceModel.Web.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Data.DataSetExtensionsv4.0_4.0.0.0__b77a5c561934e089System.Data.DataSetExtensions.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Corev4.0_4.0.0.0__b77a5c561934e089System.Core.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Web.Extensionsv4.0_4.0.0.0__31bf3856ad364e35System.Web.Extensions.dll" /R:"C:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Filesroot5f9ae3e7fb951622assemblydl38bc985a80d3499e_743ad001System.Web.Http.dll" /R:"C:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Filesroot5f9ae3e7fb951622assemblydl39b54a07504382d7_743ad001System.Web.WebPages.Razor.dll" /R:"C:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Filesroot5f9ae3e7fb951622assemblydl35019bd9c0c52297_743ad001System.Net.Http.Formatting.dll" /R:"C:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Filesroot5f9ae3e7fb951622assemblydl33abcf35d0e42c91_743ad001System.Web.Razor.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Xml.Linqv4.0_4.0.0.0__b77a5c561934e089System.Xml.Linq.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.Drawingv4.0_4.0.0.0__b03f5f7f11d50a3aSystem.Drawing.dll" /R:"C:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Filesroot5f9ae3e7fb951622assemblydl3a1484cf304382d7_743ad001System.Web.WebPages.dll" /R:"C:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Filesroot5f9ae3e7fb951622assemblydl34186b1dd0a9d488_743ad001System.Web.Mvc.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.ComponentModel.DataAnnotationsv4.0_4.0.0.0__31bf3856ad364e35System.ComponentModel.DataAnnotations.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_64System.Webv4.0_4.0.0.0__b03f5f7f11d50a3aSystem.Web.dll" /R:"C:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Filesroot5f9ae3e7fb951622assemblydl3d427125906548bd_743ad001System.Web.Http.WebHost.dll" /R:"C:WindowsMicrosoft.NetassemblyGAC_MSILSystem.WorkflowServicesv4.0_4.0.0.0__31bf3856ad364e35System.WorkflowServices.dll" /out:"C:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Filesroot5f9ae3e7fb951622App_global.asax.whx-i4h_.dll" /debug- /optimize+ /warnaserror- /w:4 /nowarn:1659;1699;1701;612;618 /langversion:default /nowarn:1659;1699;1701 "C:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Filesroot5f9ae3e7fb951622App_global.asax.whx-i4h_.0.cs" "C:WindowsMicrosoft.NETFramework64v4.0.30319Temporary ASP.NET Filesroot5f9ae3e7fb951622App_global.asax.whx-i4h_.1.cs"`
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34209
3 Answers
3
As suggested here this is what you should do:
You may get this error when trying to browse an asp.net application.
The debug information shows that "This error can be caused by a virtual directory not being configured as an application in IIS."
However, this error occurs primarily out of 2 scenarios.
To resolve it, Right Click on the virtual directory - select properties and then click on "Create" next to the "Application" Label and the textbox. It will automatically create the "application" using the virtual directory's name. Now the application can be accessed.
Mostly we have the practice of adding web.config in the sub-directory if we want to protect access to the sub-directory files (say, the directory is admin and we wish to protect the admin pages from unathorized users).
@napi15's solutions is good and I voted for it. However, simply clicking on the project properties' web tab, and pressing the "Create Virtual Directory" button fixed the issue for us in about 30 seconds.
I got this problem when I updated Visual studio 2017 to the latest version.
My project is a WebForm type and It stopped working with the error above after I updated the Nuget packages.
I spent hours searching for solution to this but none works.
The issue with Webform is that you cannot find a place to update the Virtual Directory unlike before. I realized that feature has been removed.
The solution that helped me was painful but quite easy. I simply added a new WebForm project to my solution and migrated the code.
Note: I noticed a few changes to the default WebForm template created by Visual studio:
So you have to take good note of the features while migrating the codes.
Lastly, do not forget to visit your App_Start/Route_Config file and change Redirect to Off if you're using Page Methods
Thanks for contributing an answer to Stack Overflow!
But avoid …
To learn more, see our tips on writing great answers.
Required, but never shown
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy
"All Roads Lead to Rome."
– napi15
Sep 19 '18 at 14:55