Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Main project is not accessing the class file in another machine

Main project is not accessing the class file in another machine

Scheduled Pinned Locked Moved ASP.NET
helpcsharpdatabasedebugging
5 Posts 2 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    RADSGR
    wrote on last edited by
    #1

    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

    P 1 Reply Last reply
    0
    • R 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

      P Offline
      P Offline
      Parwej Ahamad
      wrote on last edited by
      #2

      Again take the reference of your project (which access the database) and rebuild the solution

      Parwej Ahamad g.parwez@gmail.com

      R 1 Reply Last reply
      0
      • P Parwej Ahamad

        Again take the reference of your project (which access the database) and rebuild the solution

        Parwej Ahamad g.parwez@gmail.com

        R Offline
        R Offline
        RADSGR
        wrote on last edited by
        #3

        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

        P 1 Reply Last reply
        0
        • R RADSGR

          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

          P Offline
          P Offline
          Parwej Ahamad
          wrote on last edited by
          #4

          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

          R 1 Reply Last reply
          0
          • P Parwej Ahamad

            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

            R Offline
            R Offline
            RADSGR
            wrote on last edited by
            #5

            Thanks for helping us.after changing the reference,close the soltuion and restarted the computer. working fine.

            radsgr

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups