user2807357
user2807357

Reputation: 49

PRISM navigation InvalidOperationException

When I navigate back to the same view, OnNavigatedTo(..) is not called. In my debug window, I get following error:

A first chance exception of type 'System.InvalidOperationException' occurred in Microsoft.Practices.Prism.dll

How can I get more debug information? I want to know where PRISM fails..

I can not find out where the error occurs, because the viewmodel and view are already (correctly) created. I'm just navigating back to it.

Upvotes: 0

Views: 246

Answers (1)

Alex
Alex

Reputation: 1233

You can choose which exceptions to break on in the Exception Settings tab while debugging. For more information, see https://msdn.microsoft.com/en-us/library/x85tt0dd.aspx.

In your case, you would need to enable System.InvalidOperationException under Common Language Runtime Exceptions.

Upvotes: 1

Related Questions