简体   繁体   中英

cannot generate early bound types CRM 2013 online

In order to follow this tutorial ( http://msdn.microsoft.com/en-us/library/gg695790.aspx ) I need to generate some early bound types. I cannot get the tool to work.

  • I've downloaded the latest CRM 2013 SDK
  • I've got a CRM2013 online trial account.
  • the URL I use is the one I got from the CRM2013->Settings->Customizations->Developer recources->organisation service.

the credential i use the default user (admin) from the CRM2013 online trial. lets say it's John360

when I try the command like:

 CrmSvcUtil.exe /codeCustomization:"Microsoft.Xrm.Client.CodeGeneration.CodeCustomization, Microsoft.Xrm.Client.CodeGeneration" /out:Xrm\Xrm.cs /url:https://john360.api.crm4.dynamics.com/XRMServices/2011/Organization.svc /username:john /domain:john360.onmicrosoft.com /password:pass /namespace:Xrm /serviceContextName:XrmServiceContext

i get

value cannot be null. Parameter name: identityProvider

I also tried some Obvious other with or without quotes, with the 'domain' appended to the username, nothing works. I added the program to the firewall. I also tried this tool https://xrmearlyboundgenerator.codeplex.com/ It also has problems connecting to the server. I tried with the latest version and with these connection settings: use CRM online and selected the crm4.dynamics.com Login: john@john360.onmicrosoft.com, password: pass. If I select 'Get Orgs.' I get the error

'an unsecured or incorrectly secured fault was received from the other party'

I've now also tried this route: http://code.msdn.microsoft.com/SdkSoapjs-Entity-Class-14ca830f The program gives the same error as the other generator.

edit: I actually got a bit further... with this command:

CrmSvcUtil.exe /codeCustomization:"Microsoft.Xrm.Client.CodeGeneration.CodeCustomization, Microsoft.Xrm.Client.CodeGeneration" /out:Xrm.cs /url:"https://john360.api.crm4.dynamics.com/XRMServices/2011/Organization.svc" /username:"john@john360.onmicrosoft.com" /password:"pass" /namespace:Xrm /serviceContextName:XrmServiceContext /serviceContextPrefix:

it resultet in error:

Metadata contains a reference that cannot be resolved.

I didn't do any customization changes to my trail, so I'm not sure what this is about. Any suggestions are welcome.

Using the XrmToolBox as a method of connecting to CRM, I've created a GUI front end wrapper over the CrmSvcUtil.exe. It adds a lot of additional features, but most importantly for you, it creates the commandline required to generate the entities for you. Download it from the plugin store within the Xrm Tool Box, and never have this problem again!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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