.Net Framework: exception in w3wp.exe

88.3k views Asked by At

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.

10

There are 10 answers

2
greatromul On BEST ANSWER

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.

0
Manish Dubey On

If it is a win32 exception Open the Advanced settings dialog of the Application pooland set: Enable 32-Bit Applications to True

1
Rajani On

We fixed this isse. For us, it was because of the permission levels to write into log. Changed the permissions in IIS.

Repeat this step for each site.

  1. Open IIS Manager.
  2. Select site.
  3. Open Authentication
  4. Edit "Anonymous Authentication" Credentials. Change to use Application Pool Identity.
  5. IIS Reset
0
Dan On

This error occurred for me because my .dll being used by the server was not the same version as the .dll being used by my client application.

In short: Make sure your application and website are using the same dll's

0
Zeno Chullamonthon On

I have found a solution. Just follow the step below.

1) Open IIS.
2) Go to your Application Pool.
3) Right-click on it -> Advanced Settings...
4) Under Process Model, change Identify from "ApplicationPoolIndentity" to "LocalSystem"
5) Restart your IIS.

4
lukejkw On

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.

0
Druid On

I had this problem because my IIS Application Pool for the app was set to .NET 4.5 (Classic). I switched it to non-classic, restarted IIS and the problem disappeared.

0
RonC On

My issue was that a DLL that my app needed to load was no longer in the bin folder. Looking in Event Viewer> Windows Logs> Application is how I found out what the issue was and which missing dll was causing the issue.

1
Aly González On

I was calling async Task methods from a Parallel.ForEach. In develop I had not problem, but in production I got this error. I Suppose the resorces of SO were not enought.

I could see the error log in event view log of Windows, here it show the stacktrace.

0
Sivalingaamorthy On

I had similar issue, mostly the issue is because of the code, that is going in infinite loop, end up with stackoverflow exception.

Just commented all the code in Home Page and tried, page starts working, later un-commented major functionality one after another, figured it out that Controller Rendering is going in infinite loop. Found a fix for this.