Main project is not accessing the class file in another machine
-
I have created mainProject in Webapplication using VB.Net.Created another project i.e Project2 under that solution.This is For accesing Database we have created the class file.Main Project created the object to access the class.It's working fine But if u load the whole project in another machine,it's not accessing the class.If u debug,it's not accessing the class.we gave Reference and also created the object in the web page to access the class. Can anyone help me,regarding this problem. My code is, GetList is a function of the class clssearch. Imports project2 Private obj1 as clssearch Dim ResDT as DataTable ResDT = obj1.GetList() 'Here it's not accessing the function.In the debug mode also,it's not accesiing class.So ResultDT is nothing If Not ResultDT Is Nothing Then 'some code Else lblMsg.Text = "No Results Found!"
radsgr
-
I have created mainProject in Webapplication using VB.Net.Created another project i.e Project2 under that solution.This is For accesing Database we have created the class file.Main Project created the object to access the class.It's working fine But if u load the whole project in another machine,it's not accessing the class.If u debug,it's not accessing the class.we gave Reference and also created the object in the web page to access the class. Can anyone help me,regarding this problem. My code is, GetList is a function of the class clssearch. Imports project2 Private obj1 as clssearch Dim ResDT as DataTable ResDT = obj1.GetList() 'Here it's not accessing the function.In the debug mode also,it's not accesiing class.So ResultDT is nothing If Not ResultDT Is Nothing Then 'some code Else lblMsg.Text = "No Results Found!"
radsgr
Again take the reference of your project (which access the database) and rebuild the solution
Parwej Ahamad g.parwez@gmail.com
-
Again take the reference of your project (which access the database) and rebuild the solution
Parwej Ahamad g.parwez@gmail.com
-
Thanks for replying me.I have tried that also.Remove and add the reference agian.Rebuilded the solution.Still the same.Please help us regarding this problem.
radsgr
Please make sure the class name in this way dim obj as project2.yourclassname Also make sure the access specifire of class, function & property etc which yoy want to access.
Parwej Ahamad g.parwez@gmail.com
-
Please make sure the class name in this way dim obj as project2.yourclassname Also make sure the access specifire of class, function & property etc which yoy want to access.
Parwej Ahamad g.parwez@gmail.com