Solved

IIS Page - Getting a Runtime Error

Posted on 2016-10-12
3
35 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
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…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now