ASP.NET 2.0 Web Site gives Stack Trace without line numbers

  • Thread starter Thread starter John Kotuby
  • Start date Start date
J

John Kotuby

Hi all,
I am working on what I "thought" was a Web Project in VS 2005 using VB. I
have published the site to an IIS server in our office for testing. When I
hit a runtime error I get a basically unreadable stack trace that shows me
the function or sub where the error occurred plus an offset instead of a
line number.

I created the "project" from the menus with File->New Web Site. All the
documentation says to get line numbers in the error pages I just have to go
to Project -> Properties -> Configuration Properties -> Build -> Generate
Debugging Information which will create PDB files. That's great except I
can't find that option anywhere in the menus.

In Web.config I have Debug=True set.

All I can find in the menus is Web Site->Start Options or Web Site->ASP.NET
Configuration. How do I get line numbers to show up with the "Web Site" type
project (rather than the "Web Application" type project, which apparently I
did not create)?

Thanks to all...
 
I have installed a rewritten version of MultiSite.dll and pointed localhost
to my development folder. Now all my image and page references are resolving
properly so that I can use my local machine for testing/debugging such that
I am now getting line numbers on the error pages.

Many thanks to George Ter-Saakov <[email protected]> for rewriting the dll
and posting the instructions for its use. References like
src="~/images/pictire.gif" that were not resolving when I ran my site on
http://localhost/project are now working just fine because I can bring up my
site as http://localhost even though it is pointing to the project folder.

That was the reason I was attempting to remote test/debug on the root site
of another IIS server. Now everything in the development cycle is working
MUCH faster.

Thanks George
 
You are welcome.

Also the cool thing is that this DLL can be run in Production on a server.
When you do not want to create subwebs.

PS: you should not be using src="~/images/pictire.gif" just use
"/images/picture.gif". IE will resolve it to root of the webserver (which is
pointing now to your project folder).

George.
 
Back
Top