Partially Trusted Caller Error Message

May 22, 2008

The error message stating “That Assembly does not allow partially trusted callers” basically means that not all assemblies have been granted proper permissions to run on your SharePoint server.

There are two things you must make sure of:
1) The CognosDotNet_2_0.dll and CognosDotNetAssembly_2_0.dll are registered (installed) in the Global Assmbly Cache (GAC).
2) You have granted permission for signed QueryVision assemblies to run at full trust within your web configuration and policy.

To Install the Cognos assemblies into the GAC follow these steps:
1) Open a Windows Explorer and browse to the virtual directory where you installed the QueryVision web part package or solution. (e.g. C:\Inetpub\wwwroot\wss\VirtualDirectories\80)

2) Look for the \bin folder and verify that the two Cognos files (CognosDotNet_2_0.dll and CognosDotNetAssembly_2_0.dll) are present. If they are not then you either have the wrong directory or have not installed the web part package properly.

3) Open a 2nd Windows Explorer window and browse to your windows\assembly directory (typically c:\windows\assembly)

4) Select the Cognos assembly files from the first window and drag / drop them into the second window (which is the GAC).

5) Verify that the files are listed in the Global Assembly Cache window.

6) Reset IIS (from the command line you can type IISReset)

As mentioned above you also need to make sure you have granted the QueryVision assemblies their proper privilges in your policy file.

QueryVision Blog

May 21, 2008

Welcome to the QueryVision blog site