Offistart - Virtual Offices, Office Space, Business Support Services
*Home>>>Virtual Business

Asp.net server error?


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.

The server still says the same thing after adding that code. the web site is tysonfire.com . someone please help.

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.

Try this line
<compilation debug="true"/>

inside system.web in your web.config as:

<system.web>
...
<compilation debug="true"/>
...
</system.web>

run your application again, and make a new question quoting the ASP.NET error you get. For sure, it is safe for now. but you would eventually have to remove this line before you expose your web to public.

Good luck.

Have you tested it on your local machine? Is your default page named 'default.aspx'? I ask that because I'm sure that's what GoDaddy has IIS set up for. Is your default page trying to run code? I would switch it with a blank default page to see if you still get the same error. Btw, what error were you getting exactly before you threw the trust level tag in your web.config?

Btw, get rid of that trust level tag....

edit - feel free to email me

Tags
  Call Handling   Answering Service   Telephone Answering   Mail Forwarding   Virtual Address   Virtual Assistant   Virtual Business   Virtual Offices
Related information
  • I received a response from a question. What is your opinion?

    I think she needs some down time. Sounds really stressed out don't you think??

    ...
  • Need Help Finding the right computer?

    for a price like that you are best to look for an acer. they are cheap and have very good specs. your best bet also is to look in weekly ads. oh and STAY AWAY from DELL they are a rip off

    ...
  • The Sims 2 Runs VERY SLOWLY.?

    The video card you have is so-so. It should handle Sims 2, however. Sims2 requires a healthy amount of RAM. It really doesn't matter what the "minimum" or even "recommended...

  • Any sociologists and can you help me make a difficult decision?

    I have no degree in sociology, however, it has been my observation that groups of three don't usually work. There always seem to be two against one. Perhaps five would be better. You have a...

  • What Can We Do to Help Win the War on Terror?-Advice please.?

    Dr. Chong is correct. It seems a lot of Americans have thought little about all the terror attacks on Americans, especially Liberals. One would think 9/11 would be a wake-up call for us, but in les...

  • Can someone give an example of a private limited company?

    Coca Cola PLC is not one. Most small companies are private limited companies. The private means that their shares are not available on the stock exchange. Any company with PLC after its name i...

  • Need advice please?

    Social dynamics is that everything has the possible outcome of being a draw. 2 vs 2. Three (or five) total with one person designated as the tie breaker vote means that you can spend a lot more ti...

  • Does this mean Jesus is about to Come?

    A very interesting read. I don't know that our doom is as dark as what he makes out, but I think he has a lot of good points, and his conclusion is dead-on - America must unite. This does ...

  •  

    Categories--Copyright/IP Policy--Contact Webmaster