|
Hey all,
I'm trying to get an asp.net web site going (using godaddy.com as host), and when i use a template, it keeps giving me the following error:
Server Error in '/' Application.
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
The guys at godaddy told me to change the code above (which has errors in it or something? to this:
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
But then it says that has errors as well. They also told me to put a medium trust tag ( <trust level="Medium" originUrl="" />) in the web.config but all of this gets me back to where i started. Any help? Has anyone had this same problem with the business/club/personal asp.net samples when uploading to a server? It works fine when I run it from my pc via virtual server though.
Asp.net server error?
As I have understood, all the advice you got so far is some way to debug your code, and find the source of error not to fix the error. The changes in your web.config would not fix the error by itself.
There are times when the code works fine in a local web server, but not when it is published. As a simple example, when your local SQL engine has the right table (locally), but there is not an equivalent table in the remote SQL server database. Unfortunately the problem is too broad, and it is not possible to tell beforehand what would be the problem unless you allow debugging your code and quote the main error message. With your current web.config settings, the main error is not displayed for the security reasons.
|