Cartika

Welcome, Guest Login

Support Center

How do I enable .NET to show more detailed error messages on IIS 7.0?

Last Updated: Jun 09, 2014 06:09PM EDT
By default, our Windows hosting servers
display a generic error when any .NET application generates an
exception. We display a generic error because the detailed error
messages allow a malicious user to obtain sensitive information.


To troubleshoot the error, you can modify your web.config file
and specify that a custom error message displays. A custom error
message helps you to locate the specific code that is causing the
issue.


CAUTION: The code samples we provide below do not constitute a
complete web.config file. Do not replace your existing web.config file
with the code we provide. Before changing your web.config file, we
recommend creating a backup.



Use the sample code below to display custom error messages on IIS 7.0:

<configuration>
    <system.webServer>
        <httpErrors errorMode="Detailed" />
        <asp scriptErrorSentToBrowser="true"/>
    </system.webServer>
</configuration>

Contact Us

sales@cartika.com
https://cdn.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete