Oh god!! Thx to rich guy Dave to find this for me. Thx shxtty guy.
From http://patrikluca.blogspot.com/2008/09/setting-trust-level-for-newly-installed.html
Problem
description: Request for the permission of type
'Microsoft.SharePoint.Security.SharePointPermission,
Microsoft.SharePoint.Security, Version=1
After installing a new SharePoint
Web Part, it is not working and you get an error like Request for the permission
of type 'Microsoft.SharePoint.Security.SharePointPermission,
Microsoft.SharePoint.Security, Version=12.0.0.0, Culture=neutral,
PublicKeyToken=71e9bce111e9429c' failed.
Solution: Change the trust level for
your SharePoint Web Part
This means the trust level of your newly installed
SharePoint Web Part is not set correctly. To fix this, follow these
steps:
Start the Visual Studio Command Prompt (in the program group Visual
Studio Tools).
Go to the directory where the dll is installed (typically
c:\Inetpub\wwwroot\wss\VirtualDirectories\80\bin).
Run the command gacutil
/i newwebpartdll.dll.
Run iisreset.
Your newly installed SharePoint Web
Part will be added to the global assembly cache (GAC) and everything should work
fine now.
0 comments:
Post a Comment