Quantcast
Channel: patterns & practices: Prism
Viewing all articles
Browse latest Browse all 1878

New Post: SL5 PRISM 4.1 app upgraded to VS2012 (with async/await) very weird exceptions...

$
0
0
Spent 4 hours trying to figure out spot where my app fails.
  1. It works when I access website via localhost/tms
  2. It fails at specific place when I access website via machine-name/tms
Specifically it starts initializing one of the modules and I subscribe for PRISM event:

this.EventAggregator.GetEvent<UserAuthenticationEvent>().Subscribe(this.UserAuthenticated, ThreadOption.UIThread);

I get exception "Microsoft.Practices.Prism.Events.DelegateReference.TryGetDelegate() to access method MyModule.UserAuthenticated(boolean)' failed.

As I say it works when I'm debugging and when I run with different name in browser. Very strange. I assume some kind of permissions? But why and what should I do?

Viewing all articles
Browse latest Browse all 1878

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>