How can we help you today? How can we help you today?

Issue with <compilation targetFramework="4.0" />

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.
bmains
0

Comments

3 comments

  • bmains
    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."
    bmains
    0
  • bmains
    OK, I solved that by going into ASP.NET and CGI settings and enable execute for the ASP.NET ISAPI dll's...
    bmains
    0
  • Brian Donahue
    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.
    Brian Donahue
    0

Add comment

Please sign in to leave a comment.