If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Debugging ASP/HTM using Visual Studio 2010

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-31-11, 14:55
David S. Smith David S. Smith is offline
Registered User
 
Join Date: Aug 2011
Posts: 7
Debugging ASP/HTM using Visual Studio 2010

Let me begin by saying I'm a SQL DB Developer that has been given a Web application to maintain (add and fix). The database is Microsoft SQL Server and the Web is using .asp and .htm pages. It was originally developmented in ASP Runner and we are now using Visual Studio to development. The web files and database are on the same server. I have visual studio 2010 loaded on my desktop. I can modify web files and can immediately see changes on the application web site. When the changes work, everythings great. But when something goes wrong, I don't seem to be given any good messages to let me know what's up. I can't seem to get the Debugger in Visual Studio to allow me to 1) start up the app, 2) step through the app, and 3) obtain a decent error message that helps me resolve my issue. When I do start up the Debugger with the main menu asp page, I get the following error:

The type of page you have requested is not served because it has been explicitly forbidden. The extension '.asp' may be incorrect. Please review the URL below and make sure that it is spelled correctly.

Does anyone have a suggestion?

Thanks.
Reply With Quote
  #2 (permalink)  
Old 09-01-11, 15:46
Teddy Teddy is offline
Purveyor of Discontent
 
Join Date: Mar 2003
Location: The Bottom of The Barrel
Posts: 6,075
You might have to enable web extensions on your web server. They are not enabled by default. Also, if it's classic asp you will not be able to step through the code barring some new visual studio tricks that I'm not aware of.
__________________
oh yeah... documentation... I have heard of that.

*** What Do You Want In The MS Access Forum? ***
Reply With Quote
  #3 (permalink)  
Old 09-01-11, 15:53
David S. Smith David S. Smith is offline
Registered User
 
Join Date: Aug 2011
Posts: 7
Thanks, I'll pass onto our Server Team.
Reply With Quote
  #4 (permalink)  
Old 09-01-11, 20:00
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
What messages are you getting back? Are they basic HTTP 500 messages?

You could be losing the error message due to your browser hiding them. In IE there is a setting under Internet Options -> Advanced -> Browsing for Show friendly HTTP error messages, if this is ticked, uncheck it and your should see the error in all it's glory.

There may be a similar setting in IIS but I can't remeber exactly where that is, should be easy to find with a poke around.

From a debugging perspective you are pretty much stuck, from memory there is no nice debugging available, your best hope is getting the full error messages displayed.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On