Issue with <compilation targetFramework="4.0" />

bmainsbmains Posts: 15
Hello,

I'm running on Windows 7, VS 64-bit, a ASP.NET web application which has the above registered statement: <compilation targetFramework="4.0" />. But I get this error:

Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive

However, it runs fine in VS... why is that an issue?

Thanks.

Comments

  • OK, switching to ASP.NET 4.0 Classic application pool seems to help, but now my issue with that is that it cannot load the pages, get a 404.2 error "not found."
  • OK, I solved that by going into ASP.NET and CGI settings and enable execute for the ASP.NET ISAPI dll's...
  • When you debug in Visual Studio, you are using WebDev.Webserver40.exe rather than IIS. So it is possible that you can debug in VS but not profile the website in IIS because you're using two entirely different applications. On your computer, ASP .NET 4.0 wasn't correctly registered in IIS.
Sign In or Register to comment.