我有拋出以下異常定製的SharePoint Web部分:的SharePoint的WebPart安全例外
System.Security.SecurityException: Request for the permission of type 'Microsoft.SharePoint.Security.SharePointPermission, Microsoft.SharePoint.Security, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' failed.
at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode)
at Waverly.SharePoint.Features.WebParts.SearchesListWebPart.Render(HtmlTextWriter writer)
The action that failed was:
Demand
The type of the first permission that failed was:
Microsoft.SharePoint.Security.SharePointPermission
The Zone of the assembly that failed was:
MyComputer
我的理論是,SharePoint不能很好的信任級別運行的網絡的一部分,但我有困難搞清楚如何調試這個問題。任何人有任何經驗調試這樣的事情?
GAC-dll是似乎能夠工作的唯一東西 - 它確實有效。 – sestocker 2009-01-06 19:37:09