• We should now be fully online following an overnight outage. Apologies for any inconvenience, we do not expect there to be any further issues.

What does this error mean in ASP.net?

Q

Lifer
Jul 21, 2005
12,046
4
81
http://hirethefired.com
UPDATE: OK, got a new host that has ASP.net 2.0, but all I get now is the Cpanel parked page even though i uploaded my files/folders into the dochttp folder. I don't know why....I also use MySQL server 2005 if that means anything

Update 2: See the website, now there is a more advanced error info
 

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
14
81
www.markbetz.net
You need to edit the web.config file as suggested to turn custom error mode off, then you can see some details of what exception was thrown.
 

Snapster

Diamond Member
Oct 14, 2001
3,916
0
0
That means an exception has been thrown, but because you are viewing the web page remotely, ie not on the web server a less detailed error message is shown. You can either log in to the web server and bring up the page locally to get the exact error, or turn custom errors off in the web.config. Best guess at the error will be permissions, either ASPNET on a resource or db server. :)
 

Q

Lifer
Jul 21, 2005
12,046
4
81
I changed it to "off" and it still shows the same error page, just this time it says "Off" instead of "on"

If I view the page locally, everything works as it should and I see my website...
 

Snapster

Diamond Member
Oct 14, 2001
3,916
0
0
Are you sure you added: <customErrors mode="Off"/> to the web.config to the live server? As I said the other solution (if possible) is to remote desktop to the web server to view the page locally on there. I guess a third solution would be to have a nice big try-catch block which write out the error to the page.
 

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
14
81
www.markbetz.net
Try putting the following into web.config in the system.web section...

<trace enabled="true" localOnly="false" pageOutput="true" requestLimit="10000"/>
 

Q

Lifer
Jul 21, 2005
12,046
4
81
Originally posted by: Markbnj
Try putting the following into web.config in the system.web section...

<trace enabled="true" localOnly="false" pageOutput="true" requestLimit="10000"/>

Didn't look like that worked, thanks though.

This is really annoying me. (i can't figure out how to get rid of that code box)

 

imported_Dhaval00

Senior member
Jul 23, 2004
573
0
0
There is a chunk of code somewhere in your Website that is throwing an exception, and you (or the person who coded the site) are (is) not catching this exception. By default, ASP.NET is configured to not show this exception trace remotely - this is by design, as a potential hacker could refer to this trace and figure out ways to interpret your code. This behavior is essentially controlled by the <customErrors> element in the web.config file, whose "mode" attribute is set to "RemoteOnly" by default. Refer to http://msdn2.microsoft.com/en-us/library/h0hfz6fc.aspx for all the possible values. "RemoteOnly" forces ASP.NET to show that page that you're seeing right now, when trying to access the Website remotely (not from the same machine where the Website is installed).

As mentioned above, you don't want to set this attribute's value to "Off" in a production environment. Remote Desktop into the production machine and then access that page using http://localhost/... this will tell ASP.NET that you're accessing the site locally and it will show the whole exception trace of where the error is occurring.
 

WannaFly

Platinum Member
Jan 14, 2003
2,811
1
0
Originally posted by: Quintox
Originally posted by: Markbnj
Try putting the following into web.config in the system.web section...

<trace enabled="true" localOnly="false" pageOutput="true" requestLimit="10000"/>

Didn't look like that worked, thanks though.

This is really annoying me. (i can't figure out how to get rid of that code box)


it should be :
<trace enabled="true" localOnly="false" pageOutput="false" requestLimit="10000"/>
and then navigate to http://www.hirethefired.somee.com/trace.axd you'll see your requests and on the details you should be able to get what expception is being thrown
 

Q

Lifer
Jul 21, 2005
12,046
4
81
Fly, still the same. I can run it locally and everything works, just not on the web host....
 

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
14
81
www.markbetz.net
Originally posted by: WannaFly
Originally posted by: Quintox
Originally posted by: Markbnj
Try putting the following into web.config in the system.web section...

<trace enabled="true" localOnly="false" pageOutput="true" requestLimit="10000"/>

Didn't look like that worked, thanks though.

This is really annoying me. (i can't figure out how to get rid of that code box)


it should be :
<trace enabled="true" localOnly="false" pageOutput="false" requestLimit="10000"/>
and then navigate to http://www.hirethefired.somee.com/trace.axd you'll see your requests and on the details you should be able to get what expception is being thrown

What does that buy you over dumping it to the bottom of the page?
 

WannaFly

Platinum Member
Jan 14, 2003
2,811
1
0
Originally posted by: Markbnj
Originally posted by: WannaFly
Originally posted by: Quintox
Originally posted by: Markbnj
Try putting the following into web.config in the system.web section...

<trace enabled="true" localOnly="false" pageOutput="true" requestLimit="10000"/>

Didn't look like that worked, thanks though.

This is really annoying me. (i can't figure out how to get rid of that code box)


it should be :
<trace enabled="true" localOnly="false" pageOutput="false" requestLimit="10000"/>
and then navigate to http://www.hirethefired.somee.com/trace.axd you'll see your requests and on the details you should be able to get what expception is being thrown

What does that buy you over dumping it to the bottom of the page?


IIRC, it wont dump to the page if the page is throwing an unhandled exception, so in this case - it lets you see the error :)

OP: what do you mean "still the same"? what does that trace.axd page show - it should show the request, anf if you click on details it will show you the exception that is being thrown. It's probably a security/permissions issue - without details of your code or the error its hard for us to troubleshoot.
 

Q

Lifer
Jul 21, 2005
12,046
4
81
Going to that trace.axd goes nowhere but to the original Runtime Error page. Nothing changes.

I've emailed my webhost, as you can see it's a free subdomain so maybe they will know something.
 

Gunslinger08

Lifer
Nov 18, 2001
13,234
2
81
Is there any way you could give me temporary access? I can troubleshoot your problem a hell of a lot quicker that way.
 

Snapster

Diamond Member
Oct 14, 2001
3,916
0
0
Originally posted by: Quintox
Fly, still the same. I can run it locally and everything works, just not on the web host....

Just because it works locally does not mean it will work on a server, or that the code is 100% correct. There are many things you have to take into consideration like environment, database connections, configurations, paths etc, all which could be different on a live server.

This could be purely something simple like the webhosting is set to use aspnet 1.1 and your website is built for aspnet 2.0 and you are using tags in your web.config which 1.1 will not understand, hence an error. You have complete control of your local machine, but as this is a free subdomain you are at the mercy of the host.
 

PhatoseAlpha

Platinum Member
Apr 10, 2005
2,131
21
81
The last time I saw that error, it was a configuration problem on the web host. Nothing I myself could do about it - have to call up the host's admin, see what's up.
 

Gunslinger08

Lifer
Nov 18, 2001
13,234
2
81
It's definitely a host configuration problem or a publishing problem. It may even be that the host is set to 1.1, but your code is 2.0. I went through your code and tried removing the only things that could cause the problem (3 user controls on the master page), but you're still getting an error. I also made another test aspx page with no code behind and it won't load either. I even tried putting some code into the Application Error event in the Global.asax file, but it was never hit. Unfortunately, there's no way to tell you exactly what the configuration error is without help from your hosting provider. It looks like they have customErrors turned On/RemoteOnly at the machine.config level, with allowOverride set to false, so you can't ever see the real error message. You may be able to speak with the hosting provider and see if they can give you remote desktop access to the server, or at least take a screenshot of the error and send it to you.

How did you move the files to the server? This is a .NET 2.0 project, so I'd recommend right clicking on the project you have locally and then clicking Publish (while in visual studio, of course). Copy all of the files it generates up to your live server.
 

Snapster

Diamond Member
Oct 14, 2001
3,916
0
0
Below is a quick test which may help, copy the attached code and put in a file called default.aspx. Upload only this file to your host, or move your other files to a temporary directory. It'll tell you what .net version the host is running on. If it says 1.1.4322, then that's your problem right there.

 

GoatMonkey

Golden Member
Feb 25, 2005
1,253
0
0
Are you using the same web.config file locally that you use on the server? If it's not responding to the customErrors line in the web.config there could be a problem with your web.config file. A duplicate line maybe, or an unclosed quote.
 

Gunslinger08

Lifer
Nov 18, 2001
13,234
2
81
Originally posted by: GoatMonkey
Are you using the same web.config file locally that you use on the server? If it's not responding to the customErrors line in the web.config there could be a problem with your web.config file. A duplicate line maybe, or an unclosed quote.

The host has customErrors turned on at the machine.config level, and they have it setup so individual applications can't override it.
 

Q

Lifer
Jul 21, 2005
12,046
4
81
Originally posted by: Snapster
Below is a quick test which may help, copy the attached code and put in a file called default.aspx. Upload only this file to your host, or move your other files to a temporary directory. It'll tell you what .net version the host is running on. If it says 1.1.4322, then that's your problem right there.
It worked, thanks Snapster.
1.1.4322.2407

So now what? Just find a host that supports ASP.net 2.0? I can't find one that has a free subdomain...
 

Snapster

Diamond Member
Oct 14, 2001
3,916
0
0
It's worth a shot to first ask your host if they can configure your site to run asp.net 2.0, if they are unable to fulfil that request then you'll have to look for another host. If they do asp.net then I don't see many reasons why they cannot support asp.net 2.0.
 

Q

Lifer
Jul 21, 2005
12,046
4
81
I found a site that provides free 2.0 hosting for students, I just have to prove I am one, so I print screened my login page and colored out any important info, though there isn't really any it's just 2 of my classes in my schedule.
 

Q

Lifer
Jul 21, 2005
12,046
4
81
OK, I got an account, but the site just shows the Cpanel holder page even though I've uploaded my files/folders into the httpdocs folder
I think I use something like MySQL Database 2005 or something also if that means anything
http://hirethefired.com

See? So what could be wrong?