Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Web Config error in IIS [closed]

I have an ASP.NET Web Application which is working properly in localhost. But when hosted in IIS the following error message displays:

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>

What can I do to correct this?

like image 425
Nithesh Narayanan Avatar asked Mar 19 '26 05:03

Nithesh Narayanan


1 Answers

I don't believe that is the error message in its entirety, but I am led to believe that it is part of a message that you're getting which is asking you to turn off custom errors in order to see what the underlying cause of the problem actually is.

If you open your web.config file and find the customErrors element, change the mode to Off and upload it - now when you hit your web page with the error, you should get a detailed exception message about what is going wrong.

like image 73
Grant Thomas Avatar answered Mar 21 '26 19:03

Grant Thomas



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!