By default, Windows hosting servers like Godaddy display a generic error when any .NET application generates an exception because the detailed error messages may allow a malicious user to obtain sensitive information about the website. Most of the time this is a "500 Internal Server Error" like the one shown in image.
The image that you see on Godaddy windows shared or 4G hosting for 500 internal server error is actually hosted on GoDaddy servers and is shown automatically for your website.
To troubleshoot the actual error, you should modify your web.config file and specify that a custom error message is displayed. A custom error message helps you to locate the specific code that is causing the issue.
Displaying Custom Error Messages / Enabling Detailed Errors on IIS 6
You should include the following tags in your web.config:
<configuration>
<system.web>
<customErrors mode="Off"/>
<compilation debug="true"/>
</system.web>
</configuration>
Displaying Custom Error Messages / Enabling Detailed Errors on IIS 7
You should include the following tags in your web.config:
<configuration>
<system.webServer>
<httpErrors errorMode="Detailed" />
<asp scriptErrorSentToBrowser="true"/>
</system.webServer>
<system.web>
<customErrors mode="Off"/>
<compilation debug="true"/>
</system.web>
</configuration>
Once you modify your web.config with the above values, the actual error will be shown instead of 500 internal server error and then you can fix your code accordingly.