MS CRM 2011 CrmSvcUtil 给出错误

发布于 2024-12-13 04:56:59 字数 1054 浏览 0 评论 0原文

我尝试使用以下命令使用 CrmSvcUtil:

C:\TMP\sdk\microsoft.xrm\tools>crmsvcutil.exe /connectionString:"Authentication Type=AD; Server=myip; User ID=myusername; Password=xxx" / generate:cs /out:schema.cs /namespace:Xmr dataContextClassName:XrmServiceContext

这一直有效,直到我到达抛出异常的行:

Building source code for the entity named 'subscriptionclients'...
Building source code for the entity named 'subscriptionsyncinfo'...
Building source code for the entity named 'subscriptiontrackingdeletedobject'...

Unhandled Exception: System.InvalidOperationException: Sequence contains no matching element
   at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source, Func`2 predicate)
   at CrmSvcUtil.Generator.GenerateEntityCode(XElement entityElement, String outputNamespace, DirectoryInfo outputDirectory, Boolean useLogicalNames, StreamWriter outputWriter)
   at CrmSvcUtil.Generator.Generate(IDictionary`2 arguments)
   at CrmSvcUtil.Program.Main(String[] args)

任何人都知道什么 这意味着? 当抛出此异常时,我仍然生成了很多实体,但不是全部,这使得我的 cs 文件损坏

Im trying to use the CrmSvcUtil with the following command:

C:\TMP\sdk\microsoft.xrm\tools>crmsvcutil.exe /connectionString:"Authentication Type=AD; Server=myip; User ID=myusername; Password=xxx" /generate:cs /out:schema.cs /namespace:Xmr dataContextClassName:XrmServiceContext

And this works until I Get to a line that throws a exception:

Building source code for the entity named 'subscriptionclients'...
Building source code for the entity named 'subscriptionsyncinfo'...
Building source code for the entity named 'subscriptiontrackingdeletedobject'...

Unhandled Exception: System.InvalidOperationException: Sequence contains no matching element
   at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source, Func`2 predicate)
   at CrmSvcUtil.Generator.GenerateEntityCode(XElement entityElement, String outputNamespace, DirectoryInfo outputDirectory, Boolean useLogicalNames, StreamWriter outputWriter)
   at CrmSvcUtil.Generator.Generate(IDictionary`2 arguments)
   at CrmSvcUtil.Program.Main(String[] args)

Anyone know what this means?
When this exception is thrown I still have a lot of entities generated but not all of them and this makes my cs file broken

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

一个人的旅程 2024-12-20 04:56:59

使用 2011 SDK(尚未发布)中的 CrmSvcUtil当你问这个问题时)。

Use CrmSvcUtil from the 2011 SDK (which had not been released yet when you asked this question).

梦在夏天 2024-12-20 04:56:59

因此,在做了几个月的其他事情之后,我又回到了这个问题,并通过这个博客找到了解决方案。 http://博客。 abodit.com/2011/03/crmsvcutil-exe-with-microsoft-dynamics-crm-2011-online-problem/

So after a few months of doing other stuff I got back to this problem and find the solution via this blog. http://blog.abodit.com/2011/03/crmsvcutil-exe-with-microsoft-dynamics-crm-2011-online-problem/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文