C# MVC - Strange compilation error code -2146232576 - c#

I published a web app with C# MVC on IIS, but when I try to access the site, the server show this error; But I published the same web app in other Server and this run without issues. (I updated the NugetPackage)
Server Error in '/Outlet' 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.
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.36392
I'm searching for this error code but don't find any solution, someone knows the possible solution for this error code?

Related

"Cannot find name Map" error in ASP.NET application

I have a project which I am handling the front-end with Angular and back-end with ASP.NET. While the back-end server was already working, I was making changes on Angular project and when I wanted to re-run the ASP.NET code, I got an unexpected error at the ASP.NET side even though I did not change anything on the server side. Here is the error;
Severity: Error
Code: Build
Description: Cannot find name: 'Map'
Project: WebExperience.Test
File: D:\Desktop\StyleLabs\node_modules\#types\selenium-webdriver\http.d.ts
.
What can be causing this? Any help is appreciated, thanks.

Getting an error message "An error occurred while starting the application." after publishing an API app from Visual Studio 2017

I have a class library project based on .NET Framework 4.6.1. And another project is .NET service again based on .NET Framework 4.6.1. When I publish my service from visual studio 2017 to an API app in Azure, I get below error screen.
Few logs found:
IIS received the request; however, an internal error occurred during the processing of the request. The root cause of this error depends on which module handles the request and what was happening in the worker process when this error occurred. IIS was not able to access the web.config file for the Web site or application. This can occur if the NTFS permissions are set incorrectly. IIS was not able to process configuration for the Web site or application. The authenticated user does not have permission to use this DLL. The request is mapped to a managed handler but the .NET Extensibility Feature is not installed.
Note: Publish is successful without any error, but the application can't start.
Can anyone help me to resolve this error?
As I mentioned in comment, many factors can cause this generic error page, and it is difficult to find the root cause of the issue based on generic error message an error occurred while starting the application. For troubleshooting, you can use CaptureStartupErrors and the detailedErrors key to display details of startup exceptions.
Capture Startup Errors
new WebHostBuilder()
.CaptureStartupErrors(true)
Detailed Errors
new WebHostBuilder()
.UseSetting("detailedErrors", "true")

Compiler error while trying to run vs 2012 website on local iis

While trying to run a Visual Studio 2012 website on local iis I receive the following in the browser after a successful build.
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
-1073741511.
Show Detailed Compiler Output:
c:\windows\system32\inetsrv>C:\Windows\Microsoft.NET\Framework64\v4.0.30319\vbc.exe"
/t:library /utf8output ...
Version Information: Microsoft .NET Framework Version:4.0.30319;
ASP.NET Version:4.6.81.0 1073741511
What could be causing this?
The answer to my problem came from both of the comments above. I repaired the installation using isos for VS2012 and update 5. And, there was an incorrect dll version. I would like to give credit to antlersoft and Paul Zahra. How do I do that?

Method not found on a successful build

Using VS2008 I made a build of a C# web application. The build succeeded but for some unknown reason, it did not include one of the methods that used to be there. I got the following error while trying to call a web service that trigger that method:
System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.ApplicationException: UpdateDataObject failed with message: An error occurred (1000691):
Method "DeprovisionHandling2" could not be found in class "Assignments" --->
As soon as I generated a new build, the method was back there in the DLL and the web service worked as fine as before.
Anyone faced this strange problem? What could the reason be and how to make sure we avoid it in the future?
The build is made by TFS.
Thank you!

Upgrade to .net 4 produces breaks webservice .asmx

I was trying upgrading to .net 4 for my WebForms asp.net project.
Now I'm getting this when I try going to the .asmx webservice.
Server Error in '/' Application.
Type 'Chickenweb.WebServ.WebServ' does not inherit from 'System.Web.UI.Page'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: Type 'Chickenweb.WebServ.WebServ' does not inherit from 'System.Web.UI.Page'.
It was because I'm using IIS and was using incorrect Application pool. Thanks for all your answers!
It looks like IIS thinks your .asmx file is a .aspx file. You should check the mappings in IIS to see that .asmx is enabled and properly set up.

Categories