类型或命名空间名称' DomainServices'名称空间中不存在System.ServiceModel'

时间:2016-05-16 19:09:25

标签: asp.net visual-studio-2015 .net-framework-version

我在VS 2015项目中遇到以下错误:

.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?)  

References文件夹下还缺少以下dll:

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

1 个答案:

答案 0 :(得分:2)

我相信您需要单独安装WCF RIA Services Toolkit,因为DomainServices不是标准WCF库的一部分。

以下是下载WCF RIA Services Toolkit的link