I am building a website project in visual studio 2005. Recently I shifted towards the Visual Web Developer 2008 Edition which is a free product from Microsoft for the users like students and novices etc.
I recently read a tutorial for creating DAL(Data Access Layer) http://www.asp.net/learn/data-access/tutorial-01-cs.aspx and BLL(Business Logic Layer) http://www.asp.net/learn/data-access/tutorial-02-cs.aspx on asp.net website. When I was building my project's DAL and BLLs acording to the tutorial, I encountered a namespace problem. I was unable to use the namespace of my newly created Dataset Object. I searched for this on net but all in vain. Then suddenly i remember that we can see the XML markup of the dataset by right clicking it and clicking view code option. There I found that it is showing something else in the namespace related attributes.
Ooops! I remembered that i have renamed the dataset after it had been created and markup file of the dataset is still using that name and namespace. Then i deleted that dataset and created a new one and used that namespace in my BLL and it worked fine!!!!!
So Beware before changing the name of the dataset. Visual Web Developer 2008 will not pick up the change in Dataset's XML Code.
Happy Programming!!!!!!!!!
vikas agarwal
I recently read a tutorial for creating DAL(Data Access Layer) http://www.asp.net/learn/data-access/tutorial-01-cs.aspx and BLL(Business Logic Layer) http://www.asp.net/learn/data-access/tutorial-02-cs.aspx on asp.net website. When I was building my project's DAL and BLLs acording to the tutorial, I encountered a namespace problem. I was unable to use the namespace of my newly created Dataset Object. I searched for this on net but all in vain. Then suddenly i remember that we can see the XML markup of the dataset by right clicking it and clicking view code option. There I found that it is showing something else in the namespace related attributes.
Ooops! I remembered that i have renamed the dataset after it had been created and markup file of the dataset is still using that name and namespace. Then i deleted that dataset and created a new one and used that namespace in my BLL and it worked fine!!!!!
So Beware before changing the name of the dataset. Visual Web Developer 2008 will not pick up the change in Dataset's XML Code.
Happy Programming!!!!!!!!!
vikas agarwal