We help IT Professionals succeed at work.
Get Started

Why is IIS Crashing With This Message?

885 Views
Last Modified: 2013-11-08
I have an ASP.NET website that has been running fine for about 16 months until I "upgraded" it to start using the .NET 4.0 framework and I started building the codebase in Visual Studio 2010.

Now IIS crashes all of the time and it gives me the same error when it crashes (see below) despite the fact that this line is already in my web.config file.  The only way I can fix this issue is to turn off IIS, try browsing to the page (thus getting a website not found) and then turning IIS back on.

At first I thought this only occurred when I posted new code but now it is happening even when the code is not touched.

I am running IIS 7 on a Windows 2008 server using the ASP.NET v4.0 Application Pool (not the classic).  When the site goes down, it no longer appears to be registered to the application pool but when I perform the steps above, it once again appears in the Application Pool and the site works once again...

Please help!
Server Error in '/' Application.
--------------------------------------------------------------------------------

Runtime Error 
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. 

Details: To enable the details of this specific error message to be viewable on remote machines, please create a <customErrors> tag within a "web.config" configuration file located in the root directory of the current web application. This <customErrors> tag should then have its "mode" attribute set to "Off".


<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>
 

Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL.


<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
    </system.web>
</configuration>

Open in new window

Comment
Watch Question
Senior Systems and Integration Developer
CERTIFIED EXPERT
Commented:
This problem has been solved!
Unlock 1 Answer and 11 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE