向项目添加wcf服务时出错 [英] Error while adding wcf service to the project

查看:108
本文介绍了向项目添加wcf服务时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

将WCF服务添加到项目时出现错误.

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.

推荐答案

检查项目的属性.在应用程序"下,将目标框架设置为3.5
Check properties of the project. Under Application, set your target framework to 3.5


正确配置IIS,如果您已将WCF服务文件部署在inet管理器中,则在您的pc名称下转到网站链接,然后请执行以下
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.


确保已将所有服务文件部署在IIS的虚拟目录中.

希望这会给您带来好主意.

问候,
忧郁的


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

Hope this will give you the good idea.

Regards,
Bluesathish


这篇关于向项目添加wcf服务时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆