The setup
I have deployed a mvc 4 web api service to our web server, using the web deploy method in Visual Studio 2010.
The problem
When an exception is thrown, it lists my local machine on which the service was developed in the exception message.
Example:
... at System.Data.SqlClient.SqlConnection.Open()\r\n at ImageApp_REST_Services.Repositories.ImageLinkRepository.Get(String userId) in C:\localuser\documents\visual studio 2010\Projects\ImageApp_REST_Services\ImageApp_REST_Services\Repositories\ImageLinkRepository.cs:line 57\r\n
Does this mean the service is running on my local machine?
or
Is this just carried over from when I performed the web deploy?
In any event, how can I fix this so that the web server where the service is deployed is shown in the exception message and not my local development machine???
Thanks!
When you deploy the application, you usually deploy PDB files with it. the PDB files contain debugger symbols that allow for line numbers to be indicated... They are generated at the time that you built/compiled the app for deployment/installation, so they reference your local path.
PDB information
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With