Why do I have a 500 Error?

By default, our Windows hosting accounts display a generic error when applications generate 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:

<configuration>
   <system.webServer>
        <httpErrors errorMode="Detailed" />
        <asp scriptErrorSentToBrowser="true"/>
  </system.webServer>
  <system.web>
        <customErrors mode="Off"/>
        <compilation debug="true"/>
  </system.web>
</configuration>

Was this answer helpful?

 Print this Article

Also Read

Using Microsoft SQL Server

This discussion assumes that you have basic knowledge of Microsoft SQL Server and the client...

Enabling ColdFusion

If your account requires ColdFusion support, you can simply upload your ColdFusion files to your...

When Your Web Site Won't Load

There are several reasons why your Web site may not load. To determine the problem, do the...

Using PHP

PHP is an embedded-HTML, server-side, cross-platform scripting language that is extremely popular...

Set Up Aliased Nameservers

Aliased name servers allow our resellers to completely hide LFC Hosting from WHOIS lookups on...