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

Updated:   |  Visual Studio articles

Follow these directions to fix error 'Parser Error Message: Unrecognized attribute targetFramework' when attempting to view a ASP.NET Web page.

  1. Open a command line prompt as administrator, and type the following commands.
    1. cd C:\Windows\Microsoft.NET\Framework\v4.0.30319\
    2. aspnet_regiis.exe -ir
  2. Open IIS Manager.
  3. In the left panel of IIS Manager, expand the root directory.
  4. Select the website in question.
  5. In the right panel of IIS Manager, select Basic Settings.
  6. In the Edit Site pop-up box, click the Select button.
  7. In the Select Application Pool pop-up box, set the Application pool drop-down to ASP.NET v4.0. Click OK.
  8. Click OK to close the Edit Site pop-up box.
  9. In the right panel of IIS Manager, click Restart.




Did you find this article helpful?

If so, consider buying me a coffee over at Buy Me A Coffee



Comments


Add a Comment


Please enter e40db9 in the box below so that we can be sure you are a human.