title: Report Viewer(Visual Studio) Error: use a custom assembly with a RDLC report
body: <ul>
  <li>I am trying to add a dll to Report Viewer so that I can decode one of the fields content(in the report) using the method from that dll.</li>
  <li>I have added a dll in Report Properties --> References.</li>
  <li>All the methods in the class library(used for creating dll) are static. </li>
  <li><p>The contents of the class in that class library: ABCClass.cs(used for creating the dll ABCCollection.dll)</p>
  
  <pre><code>namespace ABCCollection
      {
          public class ABCClass
          {
             public static string CustomFormatString(string s)
              { 
                   //perform some operation on s
                   return s;
              }
          }
       }
  </code></pre></li>
  </ul>
  
  <p>In the Report1.rdlc, I am using value for a field as:</p>
  
  <pre><code>=ABCCollection.ABCClass.CustomFormatString("testing")
  </code></pre>
  
  <p>But once I run this report, I am getting error as:</p>
  
  <pre><code> Error while loading code module: ‘ABCCollection, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’. Details: Could not load file or assembly 'ABCCollection, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
  </code></pre>
  
  <p>Can somebody help me with this?</p>