C# – How to set full trust for a single Web Part in SharePoint

c++full-trustsharepointweb-parts

I am looking to set full trust for a single web part, is this possible? manifest.xml maybe?

Best Solution

Have you tried registering the assembly in the GAC? This is the preferred approach to giving any assembly full trust on your machine:

gacutil.exe \i C:\Path\To\Dll.dll

Hope that helps. Let me know if I misunderstood your question.