J'ai une partie web sharepoint personnalisé qui jette l'exception suivante:Sharepoint Webpart Exception sécurité
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
Ma théorie est que Sharepoint n'a pas le niveau de confiance pour exécuter la partie Web, mais je difficulté trouver comment déboguer ce problème. Quelqu'un at-il une expérience de débogage de quelque chose comme ça?
GAC-ing la DLL était la seule chose qui semblait fonctionner - cela a fonctionné cependant. – sestocker