我正在尝试新的LightSwitch beta 1并在我尝试构建时收到以下错误。没什么特别的 - 我试图根据现有数据库中的数据源创建一个新的屏幕。当然,没有地方可以添加参考文献。
错误5命名空间'System.ServiceModel'中不存在类型或命名空间名称'DomainServices'(您是否缺少程序集引用?)[...] DataClientImplementation.cs 19 37 ClientGenerated
其他人在玩这个新东西吗?
如果微软很聪明,他们也会监控StackOverflow,并可以询问我的后续问题来缩小问题范围; - )
好的,杰夫的建议如下:
在卸载现有RIA之前:
System.ServiceModel.DomainServices.EntityFramework.dll System.ServiceModel.DomainServices.EntityFramework.xml System.ServiceModel.DomainServices.Hosting.dll System.ServiceModel.DomainServices.Hosting.OData.dll System.ServiceModel.DomainServices.Hosting.OData.xml System.ServiceModel.DomainServices.Hosting.xml System.ServiceModel.DomainServices.Server.dll System.ServiceModel.DomainServices.Server.xml
从LightSwitch iso重新安装后:
Microsoft.ServiceModel.DomainServices.Tools.dll Microsoft.ServiceModel.DomainServices.Tools.xml System.ServiceModel.DomainServices.EntityFramework.dll System.ServiceModel.DomainServices.EntityFramework.xml System.ServiceModel.DomainServices.Hosting.dll System.ServiceModel.DomainServices.Hosting.OData.dll System.ServiceModel.DomainServices.Hosting.OData.xml System.ServiceModel.DomainServices.Hosting.xml System.ServiceModel.DomainServices.Server.dll System.ServiceModel.DomainServices.Server.xml
答案 0 :(得分:2)
听起来安装无法正确安装Ria Services。
在安装盘上,转到WCU \ Silverlight \并尝试手动安装riaservices。
应该找到Dll:
C:\ Program Files \ Microsoft SDKs \ RIA Services \ v1.0 \ Libraries \ Server
或
C:\ Program Files(x86)\ Microsoft SDKs \ RIA Services \ v1.0 \ Libraries \ Server