How to resolve configuration error of 'targetFramework'?

Steps to Change Application Pool of a Website from IIS:

  1. Login to your VPS.

  2. Open Start > Administrative tools > IIS Manager.

  3. Expand the “Sites” folder from left-side panel.

    IIS Sites

  4. Select the particular website which is facing 'targetFramework' error.

  5. Right click on the Website and select Manage Web Site > Advanced Settings, as shown in following image:

    IIS Website Advanced Settings

  6. Change the ‘Application pool’ to ASP.NET 4.0 as below.

    Change the Application Pool of a Website

  7. Click on OK command button.

    Save the Changes of Application Pool


Another Way to Change Application Pool is as below:

  1. Open Start > Administrative tools > IIS Manager.

  2. Click on Application Pools and select the dedicated application pool (Only if website is having dedicated application pool) as shown in following image:

    Select Dedicated Application Pool to Make Changes

  3. Set the version of ASP.NET to 4.0, as shown in following image:

    Edit ASP.Net Version in Dedicated Application Pool

  4. Click on OK command button.

Note: If you are having a control panel then we recommend you to change the application pool from there.


  • 2 Users Found This Useful

Was this answer helpful?

Related Articles

Everything you should know about IIS Application Pools

1) What is an Application Pool? Application pool is a collection of one or more websites running...

How to set periodic recycling for application pool in IIS 7?

Following are the steps to set periodic recycling for the application pool in IIS 7: Login to...

How to backup/restore IIS7 configuration file?

Backup: Login to your server by using administrative rights. Open command prompt using...

How to Configure Passive Port Range for the FTP Service in IIS?

Following article will assist you to configure passive range for FTP service in IIS web server....

How to Fix HTTP Error 500 (or 500.21) - Internal Server Error Handler SSINC-shtml?

Error Message HTTP Error 500 (or 500.21) - Internal Server Error Handler SSINC-shtm' handler...