The exception mentioned in the title of this post was the one I encountered when using an ASP.NET control I had written.
**How I encountered the exception:
** Because I develop several websites, there’s a lot of functionality I need more than once. A possible solution for this is to write a control gallery containing the functionality I needed. And putting them in a seperate assembly makes it easy to dstribute them freely in the near future ;). I made the assembly (containing an image gallery and a download gallery) and used it in a website I am developing together with a good friend of mine. There were no problems and life seemed good. Until the day came we published the website. After putting the website online, one of the pages was not rendering correctly, displaying the message “Unhandled Exception: System.Security.SecurityException: That assembly does not allow partially trusted callers”.