2

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.

1
  • Are you sending debug versions/*.pdb files to the server? Commented Oct 9, 2009 at 14:01

2 Answers 2

1

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.

Sign up to request clarification or add additional context in comments.

1 Comment

Is there a way to remove this reference? I have tried to compile with the 'Release' configuration, and I have set the debug value in the web.config file to false. I then compile and publish, but this doesn't work.
0

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.