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 NaikPosted Nov 16, 2011, 2:31 AM
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.
Nethra R SPosted Nov 16, 2011, 2:06 AM
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?
Kunal NaikPosted Nov 16, 2011, 1:45 AM
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 SPosted Nov 16, 2011, 1:32 AM
Priya LingePosted Nov 16, 2011, 1:28 AM
Please check this,
App.Core- business layer logic servicesApp.Data- data access layer store classes and data access objectsApp.Web- user interface layerNethra R SPosted Nov 16, 2011, 12:38 AM
Priya LingePosted Nov 16, 2011, 12:36 AM
Can you please tell me which namespace you have added for accessing Businesslayer object.
Thanks.