I have a simple ASP.Net application which consist of 2 projects:
- ASP.Net Project
- Class Library Project (contains the data access and make simple business validation)
When I compile the ASP.Net project, the compiler raise an error that a method in a class is not exist.
ex.: I have a class called User, this class has a method called AddUser, the compiler says that User doesn't have a definition to AddUser or there is no extension method called AddUser. However, when i point to the method calling in the page and press F12 (Go to definition) It goes to the method definition which indicates that the complier can see the method.
How could this happen?!!!! and how can I solve it?
Userrefers to the User property. Try a full qualified namespace to yourUserclass.