我在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
答案 0 :(得分:2)
我相信您需要单独安装WCF RIA Services Toolkit,因为DomainServices不是标准WCF库的一部分。
以下是下载WCF RIA Services Toolkit的link