CAS syntax in manifest for creating Sharepoint WSP

  • Thread starter Thread starter JP
  • Start date Start date
J

JP

Hello everybody,

I am sorry, for posting out of topic question.

I have an assembly which needs full trust. In the Manifest.xml of my
sharepoint solution I have something like this:
<CodeAccessSecurity>
<PolicyItem>
<PermissionSet class="NamedPermissionSet" version="1"
Name="myName">
<IPermission class="AspNetHostingPermission" version="1"
Level="Minimal" />
...
</PermissionSet>
<Assemblies>
<Assembly Name="my.assembly" Version="1.0.0.0"
PublicKeyBlob="..." />
</Assemblies>
</PolicyItem>
</CodeAccessSecurity>
How do I have to change this snipped to give the assembly full trust?

Any pointers will be highly appreciated.

Thanks
Jai Prakash
 
Don't beat yourself over the head, have mscorcfg.msc do it for you. For .NET
2x & 3.x, it's packaged with the SDK, otherwise you can find it in control
panel. Simply set the assembly to full trust from there. If you want to see
the syntax, after setting it using the tool, open the security.config file.

--

Regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Download OWC Black Book, 2nd Edition
Exclusively on www.lulu.com/owc $15.00
Need a free copy of VSTS 2008 w/ MSDN Premium?
http://msmvps.com/blogs/alvin/Default.aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top