Click here to Skip to main content
14,385,939 members
Rate this:
Please Sign up or sign in to vote.
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 8: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, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100