Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1443
  • Last Modified:

Debugging Classic ASP on IIS7 (Win2008 x64)

I am trying to debug a web app in Classic ASP on my new server (Windows 2008 x64, IIS7). I can debug this fine on Windows Vista (32bit) IIS7 as it comes with with the error and line number. However, even when turning on the client-side debugging option etc in IIS7 on the 64-bit Windows 2008 machine, it never shows the error message or line number. I always just get an IIS error page saying that there is a problem with the resource and it cannot be displayed.

The application still works (when there are no errors) on x64 but as soon as theres an error in some code, i get no detailed feedback.

Hope you can help! Cheers in advance.
0
firefoxchris
Asked:
firefoxchris
1 Solution
 
Lee W, MVPTechnology and Business Process AdvisorCommented:
When viewing the page, do you have IE set to show friendly http error messages?  What browser are you debugging with on what system?
0
 
PugglewuggleCommented:
The cool thing about IIS 7 is that it has a way around friendly error pages.
There are two options you have to change to make this work:
On the site features view go to Error pages. On the right side click "Edit feature settings..." Then just click on Detailed errors and click OK
Next , go back to site feature view. Click on ASP under IIS. Expand "Debugging Properties". Change "Send Errors to Browser" to True.
That's it!
Let me know if that works!
0
 
firefoxchrisAuthor Commented:
Perfect. I had not seen the "Edit feature settings..." bit. Thank you very much. Bit new to IIS7! Also, yes i had already disabled Friendly Error Messages.
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Tackle projects and never again get stuck behind a technical roadblock.
Join Now