LightSwitch Beta 1 自动生成代码中缺少引用 [英] Missing references in LightSwitch Beta 1 autogen code
问题描述
我正在试用新的 LightSwitch beta 1,但在尝试构建时出现以下错误.没什么特别的 - 我试图根据现有数据库中的数据源创建一个新屏幕.当然,没有地方可以添加引用.
I'm trying out the new LightSwitch beta 1 and getting the following error when I try to build. Not much special - I tried to create a new screen based off of data sources from an existing database. Of course, there's no place to add references.
错误 5 命名空间System.ServiceModel"中不存在类型或命名空间名称DomainServices"(您是否缺少程序集引用?)[...]DataClientImplementation.cs 19 37 ClientGenerated
Error 5 The type or namespace name 'DomainServices' does not exist in the namespace 'System.ServiceModel' (are you missing an assembly reference?) [...]DataClientImplementation.cs 19 37 ClientGenerated
还有人玩这个新东西吗?
Anyone else playing with this new stuff?
如果微软很聪明,他们也会监控 StackOverflow 并且可以向我提出后续问题以缩小问题范围;-)
If Microsoft is smart, they'll be monitoring StackOverflow as well and can ask followup questions of me to narrow down the issue ;-)
好的,下面是杰夫的建议:
OK, by a suggestion by Jeff below:
在卸载现有 RIA 之前:
Prior to the uninstall of the existing RIA:
System.ServiceModel.DomainServices.EntityFramework.dllSystem.ServiceModel.DomainServices.EntityFramework.xmlSystem.ServiceModel.DomainServices.Hosting.dllSystem.ServiceModel.DomainServices.Hosting.OData.dllSystem.ServiceModel.DomainServices.Hosting.OData.xmlSystem.ServiceModel.DomainServices.Hosting.xmlSystem.ServiceModel.DomainServices.Server.dllSystem.ServiceModel.DomainServices.Server.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
从 LightSwitch iso 重新安装后:
After reinstalling from the LightSwitch iso:
Microsoft.ServiceModel.DomainServices.Tools.dllMicrosoft.ServiceModel.DomainServices.Tools.xmlSystem.ServiceModel.DomainServices.EntityFramework.dllSystem.ServiceModel.DomainServices.EntityFramework.xmlSystem.ServiceModel.DomainServices.Hosting.dllSystem.ServiceModel.DomainServices.Hosting.OData.dllSystem.ServiceModel.DomainServices.Hosting.OData.xmlSystem.ServiceModel.DomainServices.Hosting.xmlSystem.ServiceModel.DomainServices.Server.dllSystem.ServiceModel.DomainServices.Server.xml
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
推荐答案
这听起来像是安装未能正确安装 Ria 服务.
It sounds like the Install failed to properly install Ria Services.
在安装盘上,转到 WCU\Silverlight\ 并尝试手动安装 riaservices.
On the install disk, goto WCU\Silverlight\ and try installing riaservices manually.
DLL 应该位于:
C:\Program Files\Microsoft SDKs\RIA Services\v1.0\Libraries\Server
C:\Program Files\Microsoft SDKs\RIA Services\v1.0\Libraries\Server
或
C:\Program Files (x86)\Microsoft SDKs\RIA Services\v1.0\Libraries\Server
C:\Program Files (x86)\Microsoft SDKs\RIA Services\v1.0\Libraries\Server
这篇关于LightSwitch Beta 1 自动生成代码中缺少引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!