I am getting following error at run-time "Loading this assembly would produce a different grant set from other instances" when calling a vb.net 1.1 assembly from a ASP.net 2.0 website. Any idea what could be the reason behind this error?
The scenario is :
There is one web application which is built as WebSite in ASP.NET 2.0. The webpages in this website loads a 2.0 vb.net assembly, which inturn to load a 1.1 vb.net assembly.
The code is failing at run time, in loading the assembly of 1.1 dll. Please help.
I had this error when I installed .NET 4.5.1.
I fixed it by deleting the .suo files in my solution folder (you may have to show hidden files to see them).
Next time I started it up everything was back to normal.
I've been searching for weeks now and found the culprit.
In my case it was a new code signing certificate in the solution with the old one in my local certificate store.
When i installed the new certificate the error disappeared.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With