locked
Error Accesing BLL in WAP with 2 projects RRS feed

  • Question

  • User-1999989584 posted

    I have a solution with 2 projects:

    • mainProject with all the forms
    • dataProject with the BLL and DAL code for data access.

    the issue is, if a put a sample from on the dataProject with a grid to display info. from a table (througth BLL object) works fine,

    but, if I try to access data from mainProject with the same grid and BLL object, I get an execution error specifing that

    "The object doesnt exist PagosActividades" (Where PagosActividades is the tableName, used in GetPagoActividadPorID )

        'THIS CODE IS IN dataProject BLL

        Public Function GetPagoActividadPorID(ByVal PagoActividadID As Long) As db.PagosActividadesDataTable
            Return AdapterPagosActividades.GetPagoActividadPorID(PagoActividadID)
        End Function

     

    Any suggestions?

    Thanks!

    Monday, January 31, 2011 11:32 AM

Answers

  • User-1999989584 posted

    Finally, I found the error... 

     

    1. When I started the project mainProject, I created a DB on App_Data.
    2. When I created the dataProject, I copied the DB to the App_Data in dataProject, but, I left a copy on the orignial folder.
    3. The table PagosActividades doesn´t exist on the original folder.
    4. I can´t find the way to left the DB on the dataProject folder, so, at this time, I just move the DB to mainProject.

    regards.

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, January 31, 2011 9:30 PM