Saturday, February 25, 2012

Deploy with assembly error

Hello,

I have a reports with assembly.

While I try to deploy the report to my server I'm getting this error message:

Error 10 Error while loading code module: ‘Test.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’. Details: Could not load file or assembly 'Test.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

I copy the dells using the assembly to the C:\Program Files\Microsoft SQL Server\MSSQL\Reporting Services\ReportServer\bin folder.

Thanks

Idan

Hi,

this could be a problem with file-permissions. Check that your assembly inherits the permissions from the parent-folder.. Have you signed the assembly in the meantime? This could also be the cause..

Benni
|||

Thanks for the answer.

I have no problem with the permission and signed the assembly

|||Did you allow PartiallyTrustedCallers
<Assembly: System.Security.AllowPartiallyTrustedCallers()> VB.NET
[Assembly: System.Security.AllowPartiallyTrustedCallers] C#.NET

and add a entry to rssrvpolicy.config?
|||Where should I allow PartiallyTrustedCallers|||Just add one of this lines (depending of your programming language) somewhere in your project

VB.NET: <Assembly: System.Security.AllowPartiallyTrustedCallers()>
C#.NET: [Assembly: System.Security.AllowPartiallyTrustedCallers]

No comments:

Post a Comment