我在 Win7(64 位)上使用 VS2010 express,我正在尝试使用 System.ServiceModel
但我收到一个错误,指出没有 ServiceModel
System
命名空间:
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
文件,但我不知道我是否缺少某些东西或它们是否已损坏。
有什么建议吗?
谢谢, 与那滩
最佳答案
添加对程序集 System.ServiceModel 的引用。选择项目->添加引用,然后选择程序集名称。
关于c# - 缺少 System.ServiceModel,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5647291/