Solved

IIS Page - Getting a Runtime Error

Posted on 2016-10-12
3
65 Views
Last Modified: 2016-10-13
Getting the following error below, anyone seen this before:


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>
0
Comment
Question by:amazon4life
  • 2
3 Comments
 
LVL 20

Expert Comment

by:Russ Suter
ID: 41840497
Your web application is throwing some sort of exception but your web.config file isn't allowed to show it. If you're accessing the website locally then changing the option to "RemoteOnly" is a good step. It will allow IIS to display the error locally but not remotely. If you're accessing the whole thing remotely then you need to set customErrors mode="Off" to see the actual error page. If you're using customErrors mode="On" or customErrors mode="RemoteOnly" you should provide a friendly error page for the website to land on. I usually include some error handling code in that error page to log the error for later retrieval or even to email it.
0
 
LVL 1

Author Comment

by:amazon4life
ID: 41840643
Russ,

Where specifically would I modify these settings?
0
 
LVL 20

Accepted Solution

by:
Russ Suter earned 500 total points
ID: 41840687
Locate the web application in your IIS directory and find the web.config file. The config section should be somewhere near the top and will look very similar to what is shown in the error page.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Running classic asp applications under Windows Server 2008 R2 (x64) and IIS 7 is not as easy as one may think. It took me a while to figure it out while getting error 8002801d a few times. After you install the OS you will need to install the fol…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question