Click here to Skip to main content
15,888,984 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Os : win xp
IIS : 5.1
Web site was created by VS2010 – C#
By the way I have 3 versions of VS On my pc (VS2005, VS2008 AND VS2010).
Error is:

The value for the 'compilerVersion' attribute in the provider options must be 'v4.0' or later if you are compiling for version 4.0 or later of the .NET Framework. To compile this Web application for version 3.5 or earlier of the .NET Framework, remove the 'targetFramework' attribute from the <compilation> element of the Web.config file.
Posted
Updated 3-May-11 20:27pm
v2
Comments
[no name] 4-May-11 2:27am    
Edited to separate the error message from your infos

Go to property of your olution and change the 'targetFramework' property to 3.5
 
Share this answer
 
Have you read the error message at all? Simply compile it for .Net 4.0 with VS 2010. If you want to do it with the older versions of VS for some reason, just do what the error message tells you and remove the specified value from the web.config file.
 
Share this answer
 
v2

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