locked
Domain name of online crm???? RRS feed

  • Question

  • hi guys,

    Actually I was doing a walkthrough for web application http://technet.microsoft.com/en-us/library/gg695790.

    I have give the connection string in web.config,

    <connectionStrings>
      <add name="Xrm" connectionString="Server=http://crm/contoso; Domain=CONTOSO; Username=Administrator; Password=pass@word1" />
    </connectionStrings>

    and the url is

    https://navkj.crm5.dynamics.com

    say username=user and password=pwd

    Then I have changed the connection string into

    <connectionStrings>
      <add name="Xrm" connectionString="Server=https://navkj.crm5.dynamics.com; Username=user; Password=pwd"/>
    </connectionStrings>

    But its not working. Error is as follows

    The connection's device credentials must be specified.

    Tuesday, July 10, 2012 9:14 AM

Answers

  • Hi Naveen,

    For CRM online, we need to specify Device Credentials in the connection string. Modify your connection string as follows:

    <add name="Xrm"connectionString="Server=https://navkj.crm5.dynamics.com; DeviceID=xxxxx; DevicePassword=YYYYY;Username=user; Password=pwd"/>

    To get Device ID and Password:

    1. Build the project located in SDK folder at: tools\deviceregistration

    2. Run following command(make sure that the current directory in command prompt is Debug folder of Device Registration Project). It will give your Device ID and Device Password

    3. Take a copy of Device ID and Device Password. Use it in your connection string.

    H:\TechStuff\CRMStuff\SDK\SDK5.0.10\tools\deviceregistration\bin\Debug>deviceregistration /operation:Register
    Device ID: XXXXXXX
    Device Password: YYYYYYYYY

    Hope it helps..!! :)


    Vikranth http://howto-mscrm.blogspot.com "Please Mark it as answer if it helps in resolving your query"

    Tuesday, July 10, 2012 10:09 AM

All replies

  • Hi Naveen,

    For CRM online, we need to specify Device Credentials in the connection string. Modify your connection string as follows:

    <add name="Xrm"connectionString="Server=https://navkj.crm5.dynamics.com; DeviceID=xxxxx; DevicePassword=YYYYY;Username=user; Password=pwd"/>

    To get Device ID and Password:

    1. Build the project located in SDK folder at: tools\deviceregistration

    2. Run following command(make sure that the current directory in command prompt is Debug folder of Device Registration Project). It will give your Device ID and Device Password

    3. Take a copy of Device ID and Device Password. Use it in your connection string.

    H:\TechStuff\CRMStuff\SDK\SDK5.0.10\tools\deviceregistration\bin\Debug>deviceregistration /operation:Register
    Device ID: XXXXXXX
    Device Password: YYYYYYYYY

    Hope it helps..!! :)


    Vikranth http://howto-mscrm.blogspot.com "Please Mark it as answer if it helps in resolving your query"

    Tuesday, July 10, 2012 10:09 AM
  • Hi vicky,

    Thanks for the reply. Its working.By the way am also in HCL Tech.

    Tuesday, July 10, 2012 11:59 AM