Click here to Skip to main content
15,312,535 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a website with different pages all working fine, I then added a new page and get the following error when I compile:

HTTP Error 404.0 - Not Found
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

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

<compilation debug="true" strict="false" explicit="true" targetframework="4.0">

I initially used vs2012 for the new page then started from the scratch with vs2005

IIS is set 4.0
Updated 9-Oct-15 7:09am
Richard Deeming 9-Oct-15 13:33pm
Do you really mean Visual Studio 2005? Or do you mean 2015?

VS2005 only supports .NET 2.0, so you can't use it to edit a .NET 4.0 site.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900