Issue with <compilation targetFramework="4.0" />

Code profiling for .NET Developers

Moderators: Luke Jefferson, StephenC, Alex.Davies, AndrewH, melvyn.harbour, Laura Morley

Issue with <compilation targetFramework="4.0" />

Postby bmains » Mon Dec 13, 2010 4:57 pm

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
 
Posts: 10
Joined: Mon Dec 13, 2010 4:52 pm

Postby bmains » Mon Dec 13, 2010 5:03 pm

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
 
Posts: 10
Joined: Mon Dec 13, 2010 4:52 pm

Postby bmains » Mon Dec 13, 2010 5:37 pm

OK, I solved that by going into ASP.NET and CGI settings and enable execute for the ASP.NET ISAPI dll's...
bmains
 
Posts: 10
Joined: Mon Dec 13, 2010 4:52 pm

Postby Brian Donahue » Tue Dec 14, 2010 6:40 pm

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
 
Posts: 6670
Joined: Mon Aug 23, 2004 10:48 am


Return to ANTS Performance Profiler 6

Who is online

Users browsing this forum: No registered users and 0 guests