I am currently developing a small application in Silverlight, and recently to try it out, i enabled out-of-browser deployment for my application. However, now after I disabled the setting, running the application now throws an exception as soon as it finishes loading.
An unhandled exception ('Unhandled Error in silverlight application Code: 4004 Category: ManagedRuntimeError Message: System.Reflection.TargetInvocationException: An exception occurred during the operation, making the result invalid.
However, if I just open the TestPage.html in browser the application still works as it did.
Any ideas? Thanks