Click here to Skip to main content
15,942,710 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Everybody,

I am getting error while adding WCF Service to the project.
Error : Could not resolve mscorlib for target framework '.NETFramework,Version=v4.0'.  This can happen if the target framework is not installed or if the framework moniker is incorrectly formatted.

Help required.

Thanks in advance.
Updated 25-Jul-12 23:39pm

Check properties of the project. Under Application, set your target framework to 3.5
Share this answer
Configure your IIS correctly, If you've deployed your WCF service files in inet manager, then Under you pc name go to the website link and do the following
go to your service file property->ASP.NET tab->ASP.NET Version-> Put your application targer version for (ex) 4.0.30319.

Make sure you've deployed all your service files in IIS's virtual directory.

Hope this will give you the good idea.

Share this answer

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