pbrstreetgang
pbrstreetgang

Reputation: 121

ASP.NET Stack Trace Question

This is something that I have been curious about for a bit, but have never found the solution to:

After I publish an application to a server, if it throws an error, the Stack Trace still contains references to my local environment. E.G.:

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

Why does it refer to my local paths instead of the servers paths of these objects?

Thanks.

Upvotes: 2

Views: 469

Answers (2)

Guffa
Guffa

Reputation: 700342

As the debug information contains the file name at the moment that it was compiled. It's just a text value, it's not updated with the path of the actual file.

The actual name of the file wouldn't be very useful anyway, as that would be some generated file name somewhere in the .NET cache folder.

Upvotes: 1

Kieron
Kieron

Reputation: 27107

It's probably because you published a compiled version built on your machine.

Upvotes: 0

Related Questions