Using IIS 7.5, whenever I acess my website using a hostname binded to localhost, I get a compilation error " CS0103: The name 'ViewBag' does not exist in the current context"
This does not happen when I just use localhost to access my website. I have added the bindings in IIS,applicationhost and hosts file. I know this compilation error has nothing to do with the code it's having a problem with because this has happened before with something else and the solution was something totally unrelated. I just need some suggestions on what to try out that may fix this.
I got this error after finally fixing the http 400 and http 503 errors. I had to add the binding in http.sys which solved the 503 error. I'm pretty sure the current problem is still an IIS problem.