2016-05-16 147 views
0

我收到以下错误在我2015年VS项目:类型或命名空间名称DomainServices'不存在命名空间中存在 'System.ServiceModel'

的.NET Framework 4.6

Severity Code Description Project File Line Suppression State 
Error CS0234 The type or namespace name 'DomainServices' does not exist in the namespace 'System.ServiceModel' (are you missing an assembly reference?) 

而且

System.ServiceModel.DomainServices.EntityFramework 
System.ServiceModel.DomainServices.Hosting 
System.ServiceModel.DomainServices.Server 

回答

2

我相信你会需要单独安装WCF RIA服务工具箱,因为DomainServices是没有拆开的标准W的:以下DLL是引用文件夹下失踪CF库。

这里是link下载WCF RIA Services工具包

+0

下载的WCF RIA servies工具包和安装还是我收到了同样的错误。是否有一些我添加在参考文件夹下。 – BumbleBee

+0

在这一点上,我敢肯定你应该删除引用,然后重新添加它。我认为它在“C:\ Program Files(x86)\ Microsoft SDKs \ RIA Services \ v1.0 \ Libraries \ Silverlight \”下。这就是DLL应该在的地方。 –

相关问题