Quantcast
Channel: SQL Server Reporting Services
Viewing all articles
Browse latest Browse all 1418

"Error while loading code" Message after Adding Custom Assembly

$
0
0

Hi,

I've developed a report in Visual Studio 2012. I have a custom assembly that decrypts an encrypted field. I added the assembly to C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportServer\bin. 

In Report > Report Properties > References I navigated to the above location to add the assembly. I then added the class name (SolutionName.Encryption.EncryptionService) and the instance name (m_encryptionService) 

I've added a calculated field to the report (=Code.m_encryptionService.Decrypt(Fields!EncryptedNumber.Value, Fields!EncryptionKey.Value)). When I go to the Preview tab I get the message:

An error occurred during local report processing. The definition of the report '/Report2' is invalid. Error loading code module 'Module name here'. Details: Could not load file or assembly 'assembly name here' or one of its dependencies. The system cannot find the file specified. 

Any ideas to why this is happening?


Viewing all articles
Browse latest Browse all 1418

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>