Customization
I deployed the mvc 4 web api service to our web server using the web deployment method in Visual Studio 2010.
Problem
When an exception is thrown, it displays my local machine on which the service was created in the exception message.
Example:
... in System.Data.SqlClient.SqlConnection.Open () \ r \ n in ImageApp_REST_Services.Repositories.ImageLinkRepository.Get (String userId) in C: \ localuser \ documents \ visual studio 2010 \ Projects \ ImageApp_REST_Services \ ImageApp_REST_Services \ ImageLinkRepository.cs : line 57 \ r \ n
Does this mean that the service is running on my local machine?
or
Does it just carry over from the moment you deployed the website?
In any case, how can I fix this so that the web server on which the service is deployed appears in the exception message, and not on my local development machine?
Thanks!
source share