Question

I use StringTemplate library (http://www.stringtemplate.org/) on my ASP.NET 3.5 web site, and it works perfect on localhost,

I wrote simple code:

StringTemplate template = new StringTemplate();

but when I try run this on shared hosting, it throws an error:

Security Exception

Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

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

How can I resolve that problem? Thanks!

Was it helpful?

Solution

The problem is a security problem with shared hosting... this KB article will give an idea on what is involved and how to possibly solve this issue...

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top