Search code examples
.netvb.netdebuggingstack-traceline-numbers

Need debug information for .NET assembly in Release


When an error occurs in any of my .NET assemblies the user just gets a generic error saying "MyApp has encountered a problem and needs to close. We are sorry for the inconvenience." I would like the user to to see the error message and line number if possible.

From what I understand you need to deploy the pdb file along with your assembly. I did that, but it had no effect. This is a Windows application.

Any ideas on what I'm missing?


Solution

  • You should trap the Exception at high level and present a custom dialog box to the user with the exception informations.