Missing Source When Managed Exception Occurs - WPF Visual Studio 2010

for some reason, my visual studio 2010 is not loading debug symbols on my own code.

I use the default WPF application. with a sample WPF application I'm working on and working in debug mode.

when I enter debugging I can go through my code.

BUT

when an exception occurs in my code (ie throws a new exception ("test")), visual studio gives me a blue blank screen with "No Source Available". No characters loaded blah blah .. "

and

I can actually “view” the details of the exception, where it will tell me the line of code on which my exception occurred.

so that he knows what happened. It seems.

It seems that the PDB files are not loaded.

my setup:

options> Deubg> "Include only my code (only managed)." Application Properties: 1 project works in Debug x86

+5
source share
4 answers

The symbol loading should be configured to: Tools → Options → Debugging → Symbols, where you can select Automatically download symbols for: “All modules” or “Only specified modules”. This must be installed for all modules. If you get a "source unreachable" for exceptions in the .NET platform, like me, you should click the "empty character cache" button. It worked for me.

+3
source

I also ran into this problem and, fortunately, I found the following solution.

.NET, , " , ", " , " "" → "" → →

, , .

0

. , , ...

/ /etc , App.xaml .

, :

    <Application x:Class="Patcom.App"
                 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                 StartupUri="SomethingElse.xaml"
                 xmlns:p="clr-namespace:Patcom.Properties">
   ....
   </Application>  

, ( StartupUri ):

<Application x:Class="Patcom.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             StartupUri="Patcom.xaml"
             xmlns:p="clr-namespace:Patcom.Properties" >
....
</Application> 

, . - , ... .

: ... , , Bin Obj, "" .

, , , Bin Obj. , , .

0

This worked for me: Just reset your objects Just like you use a dataset ds=new dataset(); A common dataset for many results or tables, then reset using ds.reset(); Before reusing a dataset.

-1
source

All Articles