CS0433 in ASP.NET

Recently had some work done in ASP.Net, but when I published the project on the server, I kept getting compiler errors- complaining about missing an object type, and spitting out a bunch of references to the asp.net temporary folders.

The first inclination is that there is junk in those temp folders, so delete them and try again. Same error.

After trying a few more things, finally found it: The project was last compiled in debug mode, but when running the “publish project”, the release option was selected. Apparently this pulled some out-of-date files from the Release folder to be published. Switching this to debug fixed the problem, and I assume switching the actual project to release mode and recompiling would have fixed things as well.

Logged here for the inevitable revisitation of this project in the future 😉

Leave a Reply

Your email address will not be published. Required fields are marked *