Solved

IIS Page - Getting a Runtime Error

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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

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…
Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

920 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

15 Experts available now in Live!

Get 1:1 Help Now