I have two projects in one solution :
- Class Library for my BLL and DAL classes
- Web Application for my PL
Now I just use the keyword “using” in the BLL and DAL classes and get access to their methods easily. but now I try to reference the BLL and DAL in the web application project through the “using” keyword but it won’t let me (the name space couldn’t be found (are you missing reference ?)) .. then I tried to reference the library’s dll (grabbed it from the ClassLibrary/bin/debug) and the same error just popped out again!
Summery: My solution consists of two
projects (ClassLibrary and a
WebApplication) and I want to
use/reference the classes/dlls of the
class library in the web application
Edit
Guys! I already added the reference and it appears in the references folder, I’ve added both the project and the dll and still it won’t compile! .. very weird isn’t it!
Edit2
I tried creating a new solution and it worked like a charm, I tried to place the class library in like a subfolder in the solution folder or something and I thought as long as it referenced it will work okay! but it didn’t.
The new solution I didn’t change the locations at all and it worked after referencing the CLassLibrary!
You should be able to add a project reference. In the Add Reference dialog look for a “Projects” tab.