locked
"Error while loading code" Message after Adding Custom Assembly RRS feed

  • Question

  • User-275352813 posted

    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?

    Tuesday, March 29, 2016 9:38 PM

Answers

All replies