MS CRM 2011 CrmSvcUtil 给出错误
我尝试使用以下命令使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用 2011 SDK(尚未发布)中的 CrmSvcUtil当你问这个问题时)。
Use CrmSvcUtil from the 2011 SDK (which had not been released yet when you asked this question).
因此,在做了几个月的其他事情之后,我又回到了这个问题,并通过这个博客找到了解决方案。 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/