I have an ASP.Net c# project trying to access methods in a class in another project. It’s working for first half of methods in the class but not for the other half of the methods in the class which I recently added. They compile, but they throw a method not found exception at run-time.
Does anyone have any ideas I could try? I’ve tried:
- recreating the
.slnfile - Subbing in another class library project, which I know works. It appears that the error is in my main project that calls the method in the other project.
“Method not found” is a very specific error, which means a method it expected (i.e. was there at compile time) simply is not present. This usually means that the files you are deploying are different to what you think they are – specifically, I would wager that you are deploying the old version of the library (which lacks your additions).
Check the dlls deployed to the web-server against what you think they should be.