After installing Kartris, or adding in new DLLs to an existing site from Kartris, you may see the following error (or similar):
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
Exception Details: System.Security.SecurityException: Request for the
permission of type 'System.Web.AspNetHostingPermission, System,
Version=126.96.36.199, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can be
identified using the exception stack trace below.
This happens because Windows automatically distrusts items downloaded from the web in a browser.
To avoid this error, after downloading the Kartris zip, right click it and view the properties. You will see something similar to the following... click the 'unblock' button indicated near the bottom:
This unblocks the zip, and all the files within it.
To fix a site where blocked DLLs have been installed, you have two options. You can unblock the zip and copy out the various files again to your web (quicker). Or you can manually unblock each DLL on the web in a similar way.