Report Viewer(Visual Studio) Error: use a custom assembly with a RDLC report -


  • I'm trying to add a dll to report to the viewer so that I can remove the contents of a single field Decoding the report) is using the method from that dll.
  • I've added a dll in the report properties - & gt; Reference.
  • All methods (used to make DLL) in class library are static.
  • Classroom contents in that class library: ABCClass.cs (dll is used to create ABCCollection.dll)

      name space ABCCollection {public class ABCClass {public stable string customformat string (string s) {// do some operations on the return; }}}     

    In Report1.rdlc, I am using the value for the field:

      = ABCCollection ABCCLAS. Custom Formatt String ("Test")   

    But once I run this report, I get an error:

      error while loading the code module : One? ??? ABCCollection, version = 1.0.0.0, culture = neutral, PublicKeyToken = nullâ ???? Description: One of the files or assembly 'ABCC selection, version = 1.0.0.0, culture = neutral, public keynote = faucet' or its dependency could not be loaded, the system failed to detect the specified file.   

    Can anyone help me with this?

    Check the namespace given by DLL project properties, usually it's name of the project In this case, you are actually defining the namespace twice. It will be made to call the DLL:

    ABCCollection.ABCCollection.ABCClass.CustomFormatString ("Test")

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -