This is the command by which need to execute while you are in Crm SDK path
Where you have the file ” Microsoft.Xrm.Client.CodeGeneration.dll “
CrmSvcUtil.exe /codeCustomization:”Microsoft.Xrm.Client.CodeGeneration.CodeCustomization, Microsoft.Xrm.Client.CodeGeneration” /out:Xrm\Xrm.cs /url:http://10.10.10.15:80/crm/XRMServices/2011/Organization.svc /domain:EFLAB /username:EFLAB\MyUsername /password:MyPassword /namespace:Xrm /serviceContextName:XrmServiceContext
it gives the error
error of XRM.cs
Attempt to solve to this question by
applying the solution
but now it gives the error
Text of the Error
Exiting program with exception: SOAP security negotiation with ‘http://10.10.10.
15:5555/crm/XRMServices/2011/Organization.svc’ for target ‘http://10.10.10.15:55
55/crm/XRMServices/2011/Organization.svc’ failed. See inner exception for more details.
This has to do something with SOAP security problem.
Asking the Question
I am trying to generate early bound types (Xrm.cs), using command
” CrmSvcUtil.exe /codeCustomization:”Microsoft.Xrm.Client.CodeGeneration.CodeCustomization, Microsoft.Xrm.Client.CodeGeneration” /out:Xrm\Xrm.cs/url:http://
I am getting this error if i use username:domain/Administrator
” Exiting program with exception: SOAP security negotiation with ‘http://
When I use username:Administrator
its giving me this timeout error
” Exiting program with exception: The request channel timed out while waiting for
a reply after 00:04:58.6189210. Increase the timeout value passed to the call to
Request or increase the SendTimeout value on the Binding. The time allotted to
this operation may have been a portion of a longer timeout.
Enable tracing and view the trace files for more information. “
Here is snapshot:
If I use the back slash it gives the authentication error which make it obvious its not going to work that way.
Posted it on Facebook Group Microsoft Dynamics CRM and on Microsoft Social
Lets see what I get for that
Another suggestion from Akeel Sb
Try to generate that on the native server by putting the SDK there, if that is generated there then copy that here and use it
There seems to be a problem that even If i generate it there it’ll be having some problem here on my machine, I don’t have that setup here what is on the server that is just an assumption need to try that
URL in the command is working which is
and here is snapshot what it says
After Removing the domain name from User name “EFLAB/Username” putting only Username stopped the Soap Error
And the Timeout Error is there
Next thing to find out about that is where do i change the timeout value or figure out that if is it the real problem or there is something else causing this one ?
No reply yet from the group members, No answer on MS CRM Forum.
Generating the file on Server and using it in Project worked.
That problem solved here but still don’t understand why it was giving the timeout error