I'm having a strange issue.
I have a solution targeting the .net 4 framework (EF4 --> WCF4 --> Silverlight 4).
Currently, the ASP.NET web page is in the same project as the WCF service.
I recently started debugging the application, and all was fine. I had to shore up some problems I had with async methods in the service, and delete and rebuild the service reference.
After this, I started getting series of exceptions, starting with System.UnauthorizedAccessException, that I am unable to trap. They occur during the loading of GAC modules; I've had difficulty finding any pattern, because it doesn't always occur.
Let me know what additional information would be useful, as I have no idea.
Many thanks.