473,387 Members | 1,664 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Classic ASP using IIS7 - Error 500

Hey all,

I am with godaddy for webhosting right now. The have me using IIS7.
When I run my ASP page I get the error :

Error 500 :There is a problem with the resource you are looking for,
and it cannot be displayed.

Basically, there is an error in my code, however, it doesn't tell me
the line number the error was found on. After searching the web I
found out how to turn on the more detailed error reporting... but you
have to do it on the webserver. I don't have access to the webserver.

After spending allot of time chatting with godaddy, they claim I can
turn this on in the web.config file. I know this can be turn on for
ASP.NET in the web.config file... but as far as I know, not classic
asp.

Am I wrong? Is godaddy right? How do i turn on error line numbers?

Thanks so much,
Ryan Ritten
Sep 26 '08 #1
5 36684
In the Web Browser on the machine you are sitting at:

Internet Options-->Advanced Tab---"uncheck" the box for "Show friendly
HTTP error messages"

You don't want "friendly" error messages. "Friendly" means "dumbed down".

--
Phillip Windell
www.wandtv.com

The views expressed, are my own and not those of my employer, or Microsoft,
or anyone else associated with me, including my cats.
-----------------------------------------------------

"Ryan Ritten" <sp*************@thesparticusarena.comwrote in message
news:57**********************************@z72g2000 hsb.googlegroups.com...
Hey all,

I am with godaddy for webhosting right now. The have me using IIS7.
When I run my ASP page I get the error :

Error 500 :There is a problem with the resource you are looking for,
and it cannot be displayed.

Basically, there is an error in my code, however, it doesn't tell me
the line number the error was found on. After searching the web I
found out how to turn on the more detailed error reporting... but you
have to do it on the webserver. I don't have access to the webserver.

After spending allot of time chatting with godaddy, they claim I can
turn this on in the web.config file. I know this can be turn on for
ASP.NET in the web.config file... but as far as I know, not classic
asp.

Am I wrong? Is godaddy right? How do i turn on error line numbers?

Thanks so much,
Ryan Ritten

Sep 26 '08 #2
There is no "web config" file or anything similar in ASP Classic. You have
to write your error handling abilites directly into the ASP page you are
working with. In some cases you might be able to do it with an Include file
if the code is "reusable" across pages.

Most of the error trapping involves "Response.write" with certain variables
and using "Response.end" to create break points.
--
Phillip Windell
www.wandtv.com

The views expressed, are my own and not those of my employer, or Microsoft,
or anyone else associated with me, including my cats.
-----------------------------------------------------
Technet Library
ISA2004
http://technet.microsoft.com/en-us/l...chNet.10).aspx
ISA2006
http://technet.microsoft.com/en-us/l...chNet.10).aspx

Understanding the ISA 2004 Access Rule Processing
http://www.isaserver.org/articles/IS...cessRules.html

Troubleshooting Client Authentication on Access Rules in ISA Server 2004
http://download.microsoft.com/downlo...7/ts_rules.doc

Microsoft Internet Security & Acceleration Server: Partners
http://www.microsoft.com/isaserver/p...s/default.mspx

Microsoft ISA Server Partners: Partner Hardware Solutions
http://www.microsoft.com/forefront/e...epartners.mspx
-----------------------------------------------------
Sep 26 '08 #3
Thanks for your replies.

I already had the "Show friendly HTTP error messages" unchecked. As
for writing my own error messages, it's not possible when the page has
an error. if the page has an error on it, it won't return anything to
your brower except the standard "500 error page". So any
document.writes will be ignored.

Anyone else have any ideas?
Sep 27 '08 #4
Ryan Ritten wrote:
Thanks for your replies.

I already had the "Show friendly HTTP error messages" unchecked.
Then the website is configured to send friendly messages. Tell godaddy to
look again. In IIS6, it would be a matter of right-clicking the site's
folder in IIS Mgr, clicking the Configuration button in the "Application
Settings" section of the Directory tab, and clicking into the Debugging tab
to find the "Send detailed error messages to client" radio button. I don't
have IIS7 but I can't imagine the steps would be that different.
As
for writing my own error messages, it's not possible when the page has
an error. if the page has an error on it, it won't return anything to
your brower except the standard "500 error page". So any
document.writes will be ignored.
Not if you use "on error resume next" in your vbscript. Haven't you learned
how to handle errors in vbscript? Basically it's just a matter of:

'turn error-handling on:
on error resume next
<statement that might raise an error>
'check if error occurred
if err<>0 then
'error occurred - handle it - I suggest logging it in a file
'and sending a generic "error occurred" message to
'the client to avoid aiding hackers - however, for the
'sake of simplicity:
response.write err.description
response.end
end if
'turn off error handling - not a good idea to leave it on:
on error goto 0

You also might want to give this a read:
http://support.microsoft.com/kb/299986/EN-US/

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Sep 27 '08 #5
"Ryan Ritten" <sp*************@thesparticusarena.comwrote in message
news:57**********************************@z72g2000 hsb.googlegroups.com...
Hey all,

I am with godaddy for webhosting right now.
My commiserations.

It shouldn't be too difficult for you to find an alternative though. By
taking your business away from GoDaddy you'll not only be getting yourself
better hosting, you'll also be doing business with a company with more
integrity (AFAIK, GoDaddy is still the #1 choice among spammers & scammers)

- Bob.
Sep 29 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: steve king | last post by:
Hello, I have created a nice funky 500 - 100 error page which gives a nicer error; happily loops through and supplies querysting information, all headers, server variables..etc but it has a...
0
by: Shiny | last post by:
Hi to all, I am relatively new to XML and XSL-FO and am currently creating a document using the two, and would like to have the output in .pdf. For this I am using apache's fop. Initially I got...
0
by: Ravindra.H | last post by:
Hi, We are trying to evaluate use log4net v1.1.1. When we try to execute the sample application "TestApp" that is provided with the actual source code, we get the following errors: ...
0
by: Steve Klett | last post by:
Hi- I use custom erros for the basic 404, etc. I would like to also use them when I encounter a problem at run time, say.. in a try block I find an error, I would like to display an...
5
by: Ryan | last post by:
A binding navigator control adds the following code for when the Save button is clicked: Me.Validate() Me.UserBindingSource.EndEdit() Me.UserTableAdapter.Update(Me.UserDataSet.User)" You can...
2
by: nickyeng | last post by:
I have a class, and i try to create an object of it but it give me error in compilation. The error is something like "]b]undefined reference to 'Game::PowerUp::powerups", in constructor of...
4
by: Harshpandya | last post by:
Hi I am new at ASP and MYSQL. I am Using Navicat to access MYSQL database. My Problem is when i create the foreign key in "Navicat" -it gives me this error. 1452-cannot add or update child...
0
by: sandeepk84 | last post by:
Hi all... I am facing a problem in getting attachments from Yahoo Classic using JavaMail. My program reads the attachments from gmail and Yahoo Beta. But attachments of type pdf or txt from...
1
by: jdub33 | last post by:
I have a web project that used a vb6 class library. The asp page would call a createobject() to access the class library. I recently updated the vb6 class library to .net2005. I unregistered the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.