473,399 Members | 3,603 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

missing line numbers in stacktrace when precompiling

I'm using Visual Studio 2005 and have an ASP.NET web application written in
Visual Basic.
When the application runs on my local webserver and hits an error, my
errorhandler writes out debug information using the Stacktrace method of the
exception object.

However the line number of the exception and the file where it occured does
not display when I deploy the application to the live server using either
the following command:

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>aspn et_compiler -v
"\internal\hris" -p "C:\Inetpub\wwwroot\internal\HRIS" -u -d -f -c
"J:\Inetpub\wwwroot\internal\HRIS"

where J: is the mapped drive to the live webserver. I'm careful here to
specify "-d" to include debugging information, "-c" rebuilds from scratch
etc... Indeed the .PDB files required for debugging appear in the bin
folder of the web application. What is going on?

If I simply copy the files from my local webserver to the live server (IIS
forces me to then delete the App_data and App_code), this includes the .vb
code-behind files, the line numbers appear.
How do I get the line numbers to appear without having the .vb source
code-behind files on my live web-server? All the documentation seems to
imply it is possilble.

Many thanks,
Kieran Toon

The examples:

Without line number info:
STACKTRACE: at HRIS.ConfirmUpdate.Page_Load(Object sender, EventArgs e) at
System.Web.UI.Control.OnLoad(EventArgs e) at
System.Web.UI.Control.LoadRecursive() at
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,
Boolean includeStagesAfterAsyncPoint)

With line number info:
STACKTRACE: at HRIS.ConfirmUpdate.Page_Load(Object sender, EventArgs e) in
d:\inetpub\wwwroot\internal\hristest\Secure\Confir mUpdate.aspx.vb:line 72 at
System.Web.UI.Control.OnLoad(EventArgs e) at
System.Web.UI.Control.LoadRecursive() at
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint,
Boolean includeStagesAfterAsyncPoint)

Mar 1 '06 #1
0 1760

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Claus Rathje | last post by:
Where do I find line numbers and source file information that I can print to for example the EventLog, making it easier to debug errors? Claus Rathje TDC Services A/S
11
by: Ken Varn | last post by:
I want to be able to determine my current line, file, and function in my C# application. I know that C++ has the __LINE__, __FUNCTION__, and __FILE___ macros for getting this, but I cannot find a...
8
by: Arun Bhalla | last post by:
Hi, I'm developing an Explorer bar using VS.NET 2003 (C#) on Windows XP. For some time, I've noticed that I don't have filenames and line numbers appearing in my exceptions' stack traces. On...
1
by: Karsten Grombach | last post by:
Hi, I'm trying to implement a custom error page for testing purposes. When an error occurs, I catch it in the global.asax and store it in a session object, so that the custom error page can...
6
by: Buddy Ackerman | last post by:
When trapping unhandled errors in a web page via the Page_Error or Application_Error event procedures is it possible to get the line number on which the error occured? When not using custom error...
1
by: Tony | last post by:
In certain applications I have (vb.net 2003), when I catch an exception and print the toString (or stacktrace), it does NOT show the line number. However, other simple apps I have it does show...
4
by: J L | last post by:
Are there any free add-ins for VB.Net that will add and remove line numbers from the source code? TIA John
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...
4
by: Jeff Jarrell | last post by:
I have a block of code that during development is prone to casting errors. It is mostly a DataReader type thing. It looks something like this. _prtPNID = myDLReader.GetString("prtPNID")...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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...

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.