Hi,
I have 2 class librarys added to my solution and i have added the reference of the businesslayer to my website but istill get the error
Could not find type/namespace(you are missing a using directive or assembly reference). Though i have mentioned the namespace using BusinessLayer in the file where i want to access businesslayer objects. Please guide
Loading

Kunal Naik163 reputationPosted Nov 15, 2011, 9:31 PM EST
Yes, you should build the classlibrary(businesslayer/dataaccesslayer) and then add the reference.
If you want to add class files at a later stage then you should rebuild your classlibrary and then get reference. This will not cause any problem.
Priya LingeRank #785 · 2.9K reputationPosted Nov 15, 2011, 7:36 PM EST
Can you please tell me which namespace you have added for accessing Businesslayer object.
Thanks.
Nethra R SRank #6,347 · 269 reputationPosted Nov 15, 2011, 7:38 PM EST
Priya LingeRank #785 · 2.9K reputationPosted Nov 15, 2011, 8:28 PM EST
Please check this,
App.Core- business layer logic servicesApp.Data- data access layer store classes and data access objectsApp.Web- user interface layerNethra R SRank #6,347 · 269 reputationPosted Nov 15, 2011, 8:32 PM EST
Kunal Naik163 reputationPosted Nov 15, 2011, 8:45 PM EST
Build your BusinessLayer and then in your website you will access your 2 classes with the help of businesslayer object.
And if still that error comes then go to Add Refrence section under Reference section in side your web site root then under Browse tab select the dll from your projects bin folder then click ok. Now you access your these 2 classes in your website.
Hope this will helps you.
Nethra R SRank #6,347 · 269 reputationPosted Nov 15, 2011, 9:06 PM EST
Should we build the classlibrary(businesslayer/dataaccesslayer) and then add the reference?
What if we want to add class files at a later stage? then what should be done? should we rebuild? will that not cause any problem?