title: adding custom .dll class library to asp.net/C# website
body: <p>I have been working on an asp.net/C# website for a while and decided to put my SQL C# code into a class library (.dll). The problem is, when I try to add it to my website application in vs2010 it sees it, but doesn't at the same time. What I mean is the web application tells you that it is added as a reference under the reference folder, but when compiling the code it will say you don't have the reference.</p>
  
  <p>The way I add the reference is by right clicking the solution and selecting "add reference". I browse for the reference (.dll file) and then add it. </p>
  
  <p>here is the error:</p>
  
  <pre><code>    CS0246: The type or namespace name SQL_lib could not be found (are you missing a using directive or an assembly reference?)
  </code></pre>
  
  <p>I did add all the references in the web application that the dll file code had so it can't be that... I really don't know whats going on. Thank you in advance :-)</p>
  
  <p>edit:</p>
  
  <p>The only time the web application shows that it cannot find the reference is when it is done compiling and just executed. In the browser it shows the error above. When I go into the code I see no underlined error markings in the code for some reason and I can access the class within the reference. I will further look into it...</p>
  
  <p>Also it has the error in aspx based cs file and plain cs files.</p>