473,466 Members | 1,334 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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

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
2 4778
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Verane | last post by:
Hi all, I am writing code in C# using visual studio .NET 2003. I use System.Diagnostics.Trace.Assert, and when I get an assertion at run time, I can see the call stack. But for each line of the...
6
by: Phil Jollans | last post by:
Hi, I have an error dialog which shows the stack trace, usually without line numbers in the release version. To try to diagnose a particular problem, I have provided a user with a debug version...
2
by: RC | last post by:
I have implemented an error logging routine that writes out the stack trace (associated with the Exception object). It tells me the exact line(s) of code that lead up to the Exception. Example:...
9
by: Jop | last post by:
Hi guys, I'm trying to debug a deployed application (no debug symbols) and what I got is a stack trace similar to this one. What does the '+' prefixed number after the method name signify? ...
0
by: BillGatesFan | last post by:
I'm trying to display line numbers in the stack trace so that when I write the stack trace to the error log table it will tell me what line the error occured on. But I'm reading in some places that...
4
by: TS | last post by:
I have an application on one server that shows line numbers in stack trace, but on another server the "in c:\xxx.aspx:line 9999" part that accompanies the "at" part doesn't show. Besides this...
2
by: pavel.orehov | last post by:
Hi, I am using Environment.StackTrace to print the stack trace to the log when I have any exceptions in my application. When I work in development environment I see the line numbers in the...
3
by: Rahul | last post by:
Hi, Is there a way to get the line numbers to display in the exception when you have published your web site? Thanks Rahul
1
by: Brad Isaacs | last post by:
I am working with ASP.NET 2.0 and using an SQL Server 2000 database. I am using Visual Studio 2005 and developing on my Local machine. I am working with Login controls ASP.Configuration, I...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.