I have an asp.net project in three tier architecture. I added a Business Access Layer (BAL) and Data Access Layer (DAL) as a class library in the solution and I have added DAL’s reference in BAL and BAL’s reference in UI.
I have written some methods in one of the classes of BAL and its working fine but now I am adding new methods to any class of BAL ans accessing newly added method in UI. So new added method is not accessible in UI and it s giving me error as
‘BAL.TaskBAL’ does not contain a definition for
‘deleteSelectedTaskBAL’ and no extension method
‘deleteSelectedTaskBAL’ accepting a first argument of type
‘BAL.TaskBAL’ could be found (are you missing a using directive or an
assembly reference?)
D:\Mohsin\CurrentlyWorking\ManageTaskBALDAL\AdminHomePage.aspx.cs
Here deleteSelectedBAL is the newly added method
Here you can try two things
1) delete .dll file from bin of UI folder and then try to add it again.
2) you can set the project dependency by right clicking on the solution. then u r not required to add again and again