By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,728 Members | 2,480 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,728 IT Pros & Developers. It's quick & easy.

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

P: n/a
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...
Mar 5 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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 <gt****@cardone.comfor 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

"John Kotuby" <jo***@powerlist.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
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...

Mar 6 '07 #2

P: n/a
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.
"John Kotuby" <jo***@powerlist.comwrote in message
news:u7**************@TK2MSFTNGP05.phx.gbl...
>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 <gt****@cardone.comfor 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

"John Kotuby" <jo***@powerlist.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
>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...


Mar 7 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.