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
-------------------------------------------------------
"JP" <pr****@gmail.comwrote in message
news:d6**********************************@j7g2000p rm.googlegroups.com...
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