Visual Studio - Resolve "Parser Error Message: Unrecognized attribute targetFramework"

by
Jeremy Canfield |
Updated: April 04 2020
| Visual Studio articles
Follow these directions to fix error 'Parser Error Message: Unrecognized attribute targetFramework' when attempting to view a ASP.NET Web page.
- Open a command line prompt as administrator, and type the following commands.
- cd C:\Windows\Microsoft.NET\Framework\v4.0.30319\
- aspnet_regiis.exe -ir
- Open IIS Manager.
- In the left panel of IIS Manager, expand the root directory.
- Select the website in question.
- In the right panel of IIS Manager, select Basic Settings.
- In the Edit Site pop-up box, click the Select button.
- In the Select Application Pool pop-up box, set the Application pool drop-down to ASP.NET v4.0. Click OK.
- Click OK to close the Edit Site pop-up box.
- In the right panel of IIS Manager, click Restart.
Did you find this article helpful?
If so, consider buying me a coffee over at