This project has moved and is read-only. For the latest updates, please go here.

HAP with

Topics: Developer Forum, Project Management Forum, User Forum
Oct 6, 2009 at 8:30 PM



I'm trying to use HAP within a page (

The app doesn't compile and causes the following error:

System.Security.SecurityException: That assembly does not allow partially trusted callers.

Does anyone has an idea how to solve that beside changing the .Net trust level on server side. The app runs on a hosted web space where I do not have the chance to change this.

Would it be possible to ad the necessary information to the assambly?




Oct 6, 2009 at 8:35 PM

You can add an attribute to the assembly to allow partial trust but depending on how you use HAP you may need to remove some code. HAP utilizes Mime information from the registry which requires full trust in ASP.NET

Oct 8, 2009 at 4:26 AM

I just committed an update to allow HAP to run in Medium Trust environments. The biggest issue lay in the registry usage in the HtmlWeb class. I added a default list of extensions and content types to be used when the registry is not available. (this may also make the library compatible with Silverlight, though not yet tested)

Nov 11, 2009 at 10:23 AM

Hi, ran into the same problem.


Where can I get a holp of the update?