ASP.NET stack trace question

This is something I'm a little curious about but never found a solution:

After publishing the application to the server, if it throws an error, the Stack Trace still contains links to my local environment. EG:

at [appname] .dropdown.OnLoad (EventArgs e) at C: \ Documents and Settings \ [user] \ Desktop \ [solution] \ [project] \ dropdown.cs: line 74

Why does this refer to my local paths and not the server paths of these objects?

Thank.

+2


source to share


2 answers


Because the debug information contains the filename at compile time. It is just a text value, it is not updated with the path to the actual file.



The actual filename won't be very useful anyway, as it will be some generated filename somewhere in the .NET cache folder.

+1


source


Probably because you posted a compiled version built on your machine.



0


source







All Articles