Spent 4 hours trying to figure out spot where my app fails.
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?
- It works when I access website via localhost/tms
-
It fails at specific place when I access website via machine-name/tms
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?