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文件被破坏
使用2011 SDK中的CrmSvcUtil(当你问这个问题时,它还没有发布)。
所以经过几个月的其他工作之后,我又回到了这个问题,并通过这个博客找到了解决方案。 http://blog.abodit.com/2011/03/crmsvcutil-exe-with-microsoft-dynamics-crm-2011-online-problem/
链接地址: http://www.djcxy.com/p/55825.html上一篇: MS CRM 2011 CrmSvcUtil gives error
下一篇: Is it possible to use Boost.Format with a preallocated buffer?