Saturday, November 12, 2011

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

I'm learning ASP.NET; installed Visual Studio Express 2010 and had some issues getting started.

I was getting the following message whenever I tried something a little more complicated than request.write(now).

Parser Error Message: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.

After looking around I found that the error was that ASP.NET 2.0 and not ASP.NET 4.0 was installed.

Go to Control Panel > Administrative Tools > IIS

Right click on WebSite > Properties > ASP.NET > Version >

It should be some version of 4.0 and not 2.0

Don't forget to restart IIS.

1 comment: