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!

有帮助吗?

解决方案

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...

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top