So, I\'m working on this project between my laptop and my desktop.
The project works on the laptop, but now having copied the updated source code onto the desktop, I
I also faced a similar issue. The reason was that I had the changes done in the .aspx page but not the designer page and hence I got the mentioned error. When the reference was created in the designer page I was able to build the solution.