Question Status

Verified
Ramakanta asked a question on 15 Feb 2014 6:33 AM

Getting Error "exiting program with exception authentication failure" while running the below command

CrmSvcUtil.exe/url:sudlife090.api.crm5.dynamics.com/.../Organization.svc /out:C:\GeneratedCode.cs/username:ramakanta@SUDLIfe090.onmicrosoft.com /password:Pratima@2590/di:"11i1q6han36aoujva6lmhkkj5s"/dp:")FlNOmDCS?!YHTPyIrXql~78"

Reply
Verified Answer
Pramod Modvathodi responded on 16 Feb 2014 3:56 PM

I am able to generate early bound classes using your url.

CrmSvcUtil.exe/url:sudlife090.api.crm5.dynamics.com/.../Organization.svc /out:GeneratedCode.cs /username:"ramakanta@SUDLIfe090.onmicrosoft.com" /password:"Pratima@2590" /di:"11i1q6han36aoujva6lmhkkj5s" /dp:")FlNOmDCS?!YHTPyIrXql~78"

Please make sure there is a space between parameters and user name and password values are enclosed in double quotes.

Hope this help.

Reply
Suggested Answer
Pramod Modvathodi responded on 16 Feb 2014 3:43 PM

Please try with below url.

CrmSvcUtil.exe/url:sudlife090.api.crm5.dynamics.com/.../Organization.svc /out:C:\GeneratedCode.cs/username:ramakanta@SUDLIfe090.onmicrosoft.com /password:Pratima@2590/di:"11i1q6han36aoujva6lmhkkj5s"/dp:")FlNOmDCS?!YHTPyIrXql~78"

Reply
Suggested Answer
Pramod Modvathodi responded on 16 Feb 2014 3:44 PM

I think some of the url is missing when I posted. Will re-post

Reply
Suggested Answer
Pramod Modvathodi responded on 16 Feb 2014 3:49 PM

The format should be.

CrmSvcUtil.exe /url:https://server/XRMServices/2011/Organization.svc /out:Xrm.cs /username:"username" /password:"password" /deviceid:"deviceid" /devicepassword:"devicepassword"

Please refer

msdn.microsoft.com/.../gg327844.aspx

Reply
Suggested Answer
Pramod Modvathodi responded on 16 Feb 2014 3:43 PM

Please try with below url.

CrmSvcUtil.exe/url:sudlife090.api.crm5.dynamics.com/.../Organization.svc /out:C:\GeneratedCode.cs/username:ramakanta@SUDLIfe090.onmicrosoft.com /password:Pratima@2590/di:"11i1q6han36aoujva6lmhkkj5s"/dp:")FlNOmDCS?!YHTPyIrXql~78"

Reply
Suggested Answer
Pramod Modvathodi responded on 16 Feb 2014 3:44 PM

I think some of the url is missing when I posted. Will re-post

Reply
Suggested Answer
Pramod Modvathodi responded on 16 Feb 2014 3:49 PM

The format should be.

CrmSvcUtil.exe /url:https://server/XRMServices/2011/Organization.svc /out:Xrm.cs /username:"username" /password:"password" /deviceid:"deviceid" /devicepassword:"devicepassword"

Please refer

msdn.microsoft.com/.../gg327844.aspx

Reply
Verified Answer
Pramod Modvathodi responded on 16 Feb 2014 3:56 PM

I am able to generate early bound classes using your url.

CrmSvcUtil.exe/url:sudlife090.api.crm5.dynamics.com/.../Organization.svc /out:GeneratedCode.cs /username:"ramakanta@SUDLIfe090.onmicrosoft.com" /password:"Pratima@2590" /di:"11i1q6han36aoujva6lmhkkj5s" /dp:")FlNOmDCS?!YHTPyIrXql~78"

Please make sure there is a space between parameters and user name and password values are enclosed in double quotes.

Hope this help.

Reply
Ramakanta responded on 17 Feb 2014 10:00 AM

Thank you Very Much Pramod M.....for helping me....now i am able to generate the file.........1st i got an error "Access denied" on my C as well as D drive....i solved this by making a folder in" SDK\Bin"........thanks a lot again

Reply
awad responded on 7 May 2014 4:01 AM

Thanks Pramod, the issue got resolved after I enclosed user name and password values in double quotes.

Reply