缺少System.ServiceModel [英] System.ServiceModel missing
问题描述
我正在Win7(64位)上使用VS2010 Express,并且尝试使用System.ServiceModel
,但是却收到一个错误,指出System
命名空间中没有ServiceModel
:
I'm working with VS2010 express on Win7 (64 bit) and I'm trying use System.ServiceModel
but I get an error that there is no ServiceModel
in the System
namespace:
名称空间"System"中不存在类型或名称空间名称"ServiceModel"(您是否缺少程序集引用?)
The type or namespace name 'ServiceModel' does not exist in the namespace 'System' (are you missing an assembly reference?)
我查看了\Windows\Microsoft.NET\Framework\v4.0.30319
,并且有一些ServiceModel___.dll
文件,但我不知道我是否丢失了某些东西或它们是否已损坏.
I looked in \Windows\Microsoft.NET\Framework\v4.0.30319
and there are some ServiceModel___.dll
files but I don't know if I'm missing something or if they are corrupted.
有什么建议吗?
谢谢, 与那坦
推荐答案
添加对程序集System.ServiceModel的引用.选择项目-> 添加引用,然后选择程序集名称.
Add a reference to the assembly System.ServiceModel. Select Project-> Add Reference and then select the assembly name.
这篇关于缺少System.ServiceModel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!