How to upgrade a website to dot NET 4 - Unrecognized attribute ÔÇÿtargetFrameworkÔÇÖ

0 comments

If you try to run a .NET 4 application (set to .NET 4 in web config) using a .NET 3.5 (or earlier) application pool, you will get the following error:

Unrecognized attribute ‘targetFramework’

 

To associate an IIS application with the .NET Framework 4 in IIS 7.0

  1. In Windows, start Inetmgr (on Windows 7 click Start and type IIS [enter])

  2. In the Connections pane, expand the server node and then click Application Pools.

  3. On the Application Pools page, select the application pool that contains the application that you want to change.

  4. In the Actions pane, click View Applications.

  5. Select the application whose application pool you want to change and then click Change Application Pool in the Actions pane.

  6. In the Select Application Pool dialog box, select an application pool that is associated with .NET Framework version 4 from the Application pool list, and then click OK.

 

To associate an IIS application with the .NET Framework 4 in IIS 6.0

IIS

Comments


Leave a Comment