SharePoint Code Access Security Issue
Dears, We have a portal running fine and we want to apply Code Access Security by defining custom policy file. Currently we use the full trust level. We started by uninstalling our custom webparts.dll from gac (full trsted) and putting it in our portal bin folder in IIS. And then changing the trust level in our portal web.config to "ourCustomPolicyFile" which is copied from "WSS_Medium". Finally we restarted the IIS and when browsing the portal a security exception thrown: [SecurityException: Request failed.] Microsoft.SharePoint.Publishing.PublishingLayoutPage..ctor() +39 CMA.Internet.WebParts.HomePageWithTabs..ctor() +41 This is because we used a class inherited from "Microsoft.SharePoint.Publishing.PublishingLayoutPage". And based on the middle of the page http://msdn.microsoft.com/en-us/library/ee909485%28v=office.12%29.aspx this class should be fully trusted accessed So how can I modify my custom policy file to fix this exception. Note: Microsoft.SharePoint.Publishing.dll is located in the GAC Thanks, Regards, Anas N. Alhussein | Sharepoint Senior Developer
June 21st, 2011 7:23am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics