Friday 19 December 2008

Loading this assembly would produce a different grant set from other instances

If you get this exception message when trying to browse an ASP.NET site you are developing, first stop the site in IIS, then clear out the ASP.NET Temporary Files folder that relate to your site (default location is under C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files). Then start IIS and try browsing the site.

8 comments:

Unknown said...

Thanks, Neil!
Saved my bacon...

Victor said...

Thanks for the post. Got our site up and back running too.

jaymanika said...

Thanks very much Neil, this works.

Unknown said...

Thanks neil!. Still saving the bacon!

Code Corner said...

Thanks!!! Worked like a charm. One exception (this was on Win XP IIS6) we had to restart IIS to unlock Temporary Internet Files.

beatfarmer said...

This worked on Server 2008, IIS7, thanks!

manoj kumar said...

It really worked.. thnx a lot neil...:)

Suman Goutham Jonanki said...

Thanks a lot . Our site is up and running fine.


Suman