"Parser Error Message: Could not load type" in Global.asax
Solution 1:
Check that the project output path (project properties / Build) is set to bin
and not bin\Release
or bin\Debug
For some reason IIS (VS development Server or Local IIS) always accesses the libraries from the bin
directory (and won't look up for subdirectories)
Solution 2:
Your local web server is running different code than what you're actually working on. Ensure you have stopped debugging, stop your local web server, clean and rebuild as Peter suggested, double-check your global.asax and global.asax.cs, and try again.
If this doesn't work and you are using local IIS, try removing the site in IIS Manager and recreating it manually.
Solution 3:
Try modifying your global.asax file (simple add a space somewhere) and re-run. this will force the built in webserver to refresh and recompile the global.asax file.
Also do a clean and rebuild - should fix the problem