CAS syntax in manifest for creating Sharepoint WSP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • JP

    CAS syntax in manifest for creating Sharepoint WSP

    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:
    <CodeAccessSecu rity>
    <PolicyItem>
    <PermissionSe t class="NamedPer missionSet" version="1"
    Name="myName">
    <IPermission class="AspNetHo stingPermission " version="1"
    Level="Minimal" />
    ...
    </PermissionSet>
    <Assemblies>
    <Assembly Name="my.assemb ly" Version="1.0.0. 0"
    PublicKeyBlob=" ..." />
    </Assemblies>
    </PolicyItem>
    </CodeAccessSecur ity>
    How do I have to change this snipped to give the assembly full trust?

    Any pointers will be highly appreciated.

    Thanks
    Jai Prakash
  • Alvin Bruney [ASP.NET MVP]

    #2
    Re: CAS syntax in manifest for creating Sharepoint WSP

    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?

    -------------------------------------------------------


    "JP" <prkjai@gmail.c omwrote in message
    news:d68c848f-ef5d-4d54-9ce8-c304523cc66b@j7 g2000prm.google groups.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:
    <CodeAccessSecu rity>
    <PolicyItem>
    <PermissionSe t class="NamedPer missionSet" version="1"
    Name="myName">
    <IPermission class="AspNetHo stingPermission " version="1"
    Level="Minimal" />
    ...
    </PermissionSet>
    <Assemblies>
    <Assembly Name="my.assemb ly" Version="1.0.0. 0"
    PublicKeyBlob=" ..." />
    </Assemblies>
    </PolicyItem>
    </CodeAccessSecur ity>
    How do I have to change this snipped to give the assembly full trust?
    >
    Any pointers will be highly appreciated.
    >
    Thanks
    Jai Prakash

    Comment

    Working...