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

Password-Protecting a Web Site

You can password protect areas of your website through the Password Protection tool in your...

Using ASP

Active Server Pages (ASP) is Microsoft's version of PHP for Windows. It is an embedded-HTML,...

Pointing your domain to your shared hosting account.

If your domain name is registered and owned by you but does not currently point to the LFC...

Upgrade Database

Copy data from one database to another It's a very simple process and one that can be done in...

How to connect with FTP, SFTP or FTPS

Old hostnames like ftps.domain.com, ftp.domain.com, domain.com or serverXX.lfchosting.com no...