Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.Net Framework: exception in w3wp.exe

I developed website with web forms in asp.net 3.5. I ran it with IIS. It worked good earlier. But exception occured suddenly, when I debugged it. Message was

An unhandled Microsoft .Net Framework exception occured in w3wp.exe [XXXX]

It occurs every time when I try to run my application, but when I run website with Cassini there is no exception. There is no exception, when I deploy html page on IIS. Problem occurs with .net application on IIS only.

I tried many solutions which I had found here, but none resolved the problem.

What's matter? Can anybody help? Thanks.

like image 836
greatromul Avatar asked Oct 23 '13 12:10

greatromul


People also ask

What is w3wp EXE process?

An Internet Information Services (IIS) worker process is a windows process (w3wp.exe) which runs Web applications, and is responsible for handling requests sent to a Web Server for a specific application pool. It is the worker process for IIS.


2 Answers

This can be caused in ASP.NET when an infinite loop occurs.

A common example is rendering a partial view which then renders itself in ASP.NET MVC.

like image 93
lukejkw Avatar answered Sep 28 '22 10:09

lukejkw


I found the message in event viewer:

"Description: The process was terminated due to an internal error in the .NET Runtime at IP 6B484BC2 (6B300000) with exit code 80131506."

It was caused by updates of .Net Framework 4.5. I uninstalled last update. It solved the problem.

Tip: How to check event viewer. Visual Studio > View > Server Explorer > SERVER_NAME > Right click on "Event Log" > Launch Event Viewer > Windows Logs > Setup.

There is information about the error: http://support.microsoft.com/kb/2640103/en-us. But hotfix is available by request to Microsoft only.

I don't remember number of "harmful" update. But I think, everybody will be able to find last updates to remove them.

like image 44
greatromul Avatar answered Sep 28 '22 10:09

greatromul