When my ASP.Net MVC application encounters an error, the full file path of the c# class is displayed in the exception even though I’ve only deployed binaries. E.g.
at: C:\DevelopmentServer\MVC_Project\AccountManagement.cs line 45
Where is this path information being stored? Is it in the compiled dll and is there a way to remove it?
I believe this is stored in the PDB files generated during the compile, and it reflects the paths to the code on the build machine.