This post has been migrated from www.experimentsincode.com, we apologise if some of the images or content is missing

This post has been migrated, original date 17 Dec 2008 Just blogging this because I am sure that I will have the problem later and want to know how to solve it. After changing some code on my website and recompiling it I got the following error: Loading this assembly would produce a different grant set from other instances After a few muttered four letter words I asked around the team and Stephen gave me the answer. The solution:
  1. Stop IIS
  2. Delete files in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files