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.
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.
here is the error:
CS0246: The type or namespace name SQL_lib could not be found (are you missing a using directive or an assembly reference?)
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 :-)
edit:
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...
Also it has the error in aspx based cs file and plain cs files.