?
Solved

IIS Page - Getting a Runtime Error

Posted on 2016-10-12
3
Medium Priority
?
185 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Here are the symptoms: You start receiving calls from users that one of your legacy web apps isn't coming up, so you log into your IIS 5 server to check it out.  When you pull up the services, you notice that the WWW Publishing service isn't runn…
What is an ISAPI filter?   •      It's an assembly (.dll file) that can add or change the way IIS works.   •      They can be enabled globally for your web server or on a site-by-site basis.   When the IIS server receives a request, enabling the ISAPI fi…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

752 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