Re: referenced dlls

From: DJA (dja_at_progressive.dk)
Date: 01/24/05


Date: 24 Jan 2005 07:01:42 -0800

Indeed all assemblies in the "code calling chain" must have the
permissions needed. So if the assembly you call from your webpart
assembly needs to call a webservice, the called assembly as well as
your webpart assembly must have the WebPermission.

Strong name all your assemblies with the same public key and grant them
permissions using their common PublicKeyBlop.

What is also important is that if your webpart assembly is not granted
full trust it will only be able to call assemblies which have the
[assembly: AllowPartiallyTrustedCallers] attribute set. So you need to
set this attribute in the assemblyInfo file of the assmeblies your
webpart assembly calls.



Relevant Pages

  • Re: Webpart installed on GAC gives error!
    ... only in some bin folders. ... > I have a problem of deploying the webpart treeview control on GAC. ... > to deploy the webpart treeview by placing the assemblies on Bin directory. ...
    (microsoft.public.sharepoint.portalserver.development)
  • Re: Webpart with external dll
    ... So your referenced DLL's are packaged in the CAB with the WebPart? ... part was referencing the GAC'd assemblies). ... >>> i am developing a webpart, and i'm using some dlls i created time ago. ...
    (microsoft.public.sharepoint.portalserver.development)
  • Re: Unable to access existing project assemblies using Custom Web Part
    ... I use some existing assemblies (added the details of the assemblies along ... WebApplication) in the webpart. ... to go through an authentication process. ... proxy to the remoting object. ...
    (microsoft.public.sharepoint.windowsservices)
  • RE: GAC also requires to place assemblies in Bin folder?
    ... This is not the normal behavior of WebPart assemblies. ... at the SharePoint WebParts-- surely they are not deployed in your bin. ... I suspect that your DWPs may be at fault. ...
    (microsoft.public.sharepoint.portalserver.development)
  • Webpart installed in Global Assembly Cache not working
    ... I am developing a webpart for Sharepoint Portal Server 2003 using ... I want to open an excel file using OleDb connection object. ... trusted assemblies. ...
    (microsoft.public.sharepoint.portalserver.development)