locked
crmsvcutil.exe error RRS feed

  • Question

  • Hi all,

    I am trying to run crnsvcutil.exe tool, but everytime getting an Help message

     

    CrmSvcUtil : CRM Service Utility [Version 5.0.9688.42]
    © 2010 Microsoft Corporation.  All rights reserved.

    Options:
     /nologo
      Suppresses the banner.

     /language:<language>
      The language to use for the generated proxy code.  This can be either 'CS'
      or 'VB'.  The default language is 'CS'.  Short form is '/l:'.

    etc....

     

     

    Below is the details that I am trying to execute.

    Running in  Administrator Command Prompt

    c:\sdk\bin\crmsvcutil.exe/url:http://<servername>/Contoso/XRMServices/2011/Organization.svc/

    out:C:/XRM/Xrm.cs/username:administrator@CONTOSO/password:pass@word12

    /serviceContextName:contosocontext

     

    Some doubts :

    1) I have created Xrm.cs file. Is it right ? Will this tool update this file. Or I dont have to create this file ,tool will automatically create this. if not then where we have to create this file (location) ?

    2)servercontextname : any name we can give  or which name we have to give from where?

    3)What are the necessary parameter need to pass ?

    It seems http://community.dynamics.com/product/crm/f/117/p/49529/89716.aspx this link has solution but it is not working for me as I am missing something, may be above 3 points

    Please give your comments.

     

    Regards,

    -Anand Wani

    Wednesday, May 25, 2011 10:04 AM

Answers

  • Running from command prompt or visual studio command prompt won't differ.

    The generated class will be created in the same directory of the crmsvcutil.exe (This folder c:\sdk\bin\)

    CrmSvcUtil.exe /url:http://servername/MyOrg/XRMServices/2011/Organization.svc /out:GeneratedCode.cs
       /username:administrator /password:password

     

    What is your servername? do you use it from inside the server or outside? Is there a port or its on 80?

    Try hitting this url from your browser http://<servername>/Contoso/XRMServices/2011/Organization.svc and tell us what you find.


    Islam Eldemery
    http://idemery.net
    idemery
    Thursday, May 26, 2011 7:06 AM
  • Hi Anand,

    If CRM server application is hosted on a different port then 80 then you have to add the exact port number with the Url parameter i.e. /url:http://mycrm:5555

    I would suggest try running the utility from the Crm application server. You can also verify the organization service URL from:

    Microsoft Dynamics Crm - > System Settings -> Customizations -> Developer Resources ->  Service End Points ->Organization Service Protocol: SOAP

    Please mark as answer if you find the reply useful.

    Thank You,


    Jehanzeb Javeed,
    http://worldofdynamics.blogspot.com
    Linked-In Profile |CodePlex Profile




    Jehanzeb Javeed, http://worldofdynamics.blogspot.com


    Thursday, May 26, 2011 7:35 AM

All replies

  • Hi,

    Here are you answers:

    1) I have created Xrm.cs file. Is it right ? Will this tool update this file. Or I dont have to create this file ,tool will automatically create this. if not then where we have to create this file (location) ?

    Answer) The tool will automatically generate the file.

    2)servercontextname : any name we can give  or which name we have to give from where?

    Answer) The name of the generated organization service context class. If no value is supplied, no service context is created.

    3)What are the necessary parameter need to pass ?

    Answer) See sample comman line:

    CrmSvcUtil.exe /url:http://myurl:555/MyOrg/XRMServices/2011/Organization.svc /out:GeneratedCode.cs /username:administrator /password:password /domain:MyDomain

     

     


    Thank You, Jehanzeb Javeed, http://worldofdynamics.blogspot.com Linked-In Profile | CodePlex Profile
    Wednesday, May 25, 2011 10:30 AM
  • Hi Jehanzeb,

    Thank you for the reply. I tried below line

     

    c:\sdk\bin\crmsvcutil.exe/url:http://<servername>/Contoso/XRMServices/2011/Organization.svc/

    out:Xrm.cs/username:administrator/password:pass@word12/domain:CONTOSO

     

    Still it is not working. You are doing this in Administrator command prompt or Visual studio command prompt ? The GeneratedCode.cs file from your example , where it will be created ?sdk? 

    Please provide other solutions that may work.

     

    Regards

    -Anand

    Thursday, May 26, 2011 6:41 AM
  • Running from command prompt or visual studio command prompt won't differ.

    The generated class will be created in the same directory of the crmsvcutil.exe (This folder c:\sdk\bin\)

    CrmSvcUtil.exe /url:http://servername/MyOrg/XRMServices/2011/Organization.svc /out:GeneratedCode.cs
       /username:administrator /password:password

     

    What is your servername? do you use it from inside the server or outside? Is there a port or its on 80?

    Try hitting this url from your browser http://<servername>/Contoso/XRMServices/2011/Organization.svc and tell us what you find.


    Islam Eldemery
    http://idemery.net
    idemery
    Thursday, May 26, 2011 7:06 AM
  • Hi Anand,

    If CRM server application is hosted on a different port then 80 then you have to add the exact port number with the Url parameter i.e. /url:http://mycrm:5555

    I would suggest try running the utility from the Crm application server. You can also verify the organization service URL from:

    Microsoft Dynamics Crm - > System Settings -> Customizations -> Developer Resources ->  Service End Points ->Organization Service Protocol: SOAP

    Please mark as answer if you find the reply useful.

    Thank You,


    Jehanzeb Javeed,
    http://worldofdynamics.blogspot.com
    Linked-In Profile |CodePlex Profile




    Jehanzeb Javeed, http://worldofdynamics.blogspot.com


    Thursday, May 26, 2011 7:35 AM
  • Hi Islam & Jehanzeb ,

    When I hit the url ,

    http://<servername>/Contoso/XRMServices/2011/Organization.svc  I got organization service. The same url I am copying. From there I am getting server name. I am using from inside the server.

    The port number is 80 and running the utility from the Crm application server.

    I tried to add port number with url parameter, but still not working.

     

    Regards

    -Anand Wani

    Friday, May 27, 2011 6:20 AM