This is driving the whole team crazy. There must be some simple mis-configured part of IIS or our Web Server, but every time we try to run out ASP.NET Web Application on IIS
I had the same error. I had an IIS site with .net framework version 2.0, but my app needed 4.0. I changed the version and it worked.
Posting just as a reminder if someone might have the same issue.