简体   繁体   English

CRM 2015,找不到'Xrm'命名空间

[英]CRM 2015, 'Xrm' namespace not found

I can't get CRM 2015 sdk working. 我无法让CRM 2015 sdk工作。 I keep getting this error: 我一直收到这个错误:

The type or namespace name 'Xrm' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) 命名空间“Microsoft”中不存在类型或命名空间名称“Xrm”(您是否缺少程序集引用?)

I am using .NET 4.5.2. 我使用的是.NET 4.5.2。 All threads I've found online were about this upgrade of .NET. 我在网上找到的所有线程都是关于.NET的升级。 I find it weird that I managed to run the same code on Windows Server 2003, without any errors. 我觉得很奇怪,我设法在Windows Server 2003上运行相同的代码,没有任何错误。 Since there is no Windows Identity Foundation for WS 2003 I cannot connect to any CRM server. 由于WS 2003没有Windows Identity Foundation,因此无法连接到任何CRM服务器。

But in Windows 8.1 I encountered this issue. 但是在Windows 8.1中我遇到了这个问题。

Use the .dlls file from the CRM SDK 2013. 使用CRM SDK 2013中的.dlls文件。

Answer given by Cosmin Plesa in the comments Cosmin Plesa在评论中给出的答案

There is no compatibility issue of CRM 2015 SDK with your windows version and either your .Net Framework version. CRM 2015 SDK与您的Windows版本和.Net Framework版本没有兼容性问题。

Download the SDK and reference on you project the local .dll files that you can find inside SDK> bin folder 下载SDK并参考您在SDK> bin文件夹中找到的本地.dll文件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM