apurvghai / Dynamics365Samples

4 stars 0 forks source link

Not able to connect to Dynamics 365 Online #1

Open PratikSoni2889 opened 6 years ago

PratikSoni2889 commented 6 years ago

Hi,

I'm trying to connect with trial version of Dynamics 365 (online). But in CRMToolingHelper.cs class file I'm receiving crmOrgService as null. Because of these I'm not able to go ahead.

Can you please tell me what I'm missing with it.

Below is my App.Config settings:

<appSettings>
    <add key="MetadataFileLocation" value="C:\Microsoft Dynamics CRM\metadata.xml" />

    <!-- Choose the relevant Connecting String for your CRM Version -->
    <!--<add key="XrmToolingConnectionADIntegrated" value="AuthType=AD;Url=http://contoso:8080/Test;" />-->
    <!--<add key="XrmToolingConnectionADNamed" value="AuthType=AD;Url=https://confluencesoftwaresolution.crm8.dynamics.com; Username=pratiksoni@confluencesoftwaresolution.onmicrosoft.com; Password=Ps12345!" />-->

    <add key="XrmToolingConnectionOffice365" value="AuthType=Office365; Url=https://confluencesoftwaresolution.crm8.dynamics.com; Username=id@companyname.onmicrosoft.com; Password=password;" />

    <!--<add key="XrmToolingConnectionOAuth" value="AuthType=OAuth;Username=jsmith@contoso.onmicrosoft.com; Password=passcode;Url=https://contosotest.crm.dynamics.com;AppId={GUID VALUE};RedirectUri =app://{GUID VALUE};TokenCacheStorePath =c:\MyTokenCache;LoginPrompt=Auto" />
    <add key="XrmToolingConnectionOAuthUX" value="AuthType=OAuth;Username=jsmith@contoso.onmicrosoft.com; Password=passcode;Url=https://contoso:8080/Test;AppId={GUID VALUE};RedirectUri=app://{GUID VALUE};TokenCacheStorePath =c:\MyTokenCache;LoginPrompt=Auto" />
    <add key="XrmToolingConnectionIFD" value="AuthType=IFD;Url=https://confluencesoftwaresolution.crm8.dynamics.com; HomeRealmUri=https://server-1.server.com/adfs/services/trust/mex/;Domain=CONTOSO; Username=jsmith; Password=passcode" />-->

  </appSettings>
apurvgh commented 6 years ago

You should be using Office 365 credentials and make sure they are accurate. Are you able to login to portal with these? Also you should be using the correct config in the code using the enumerator.

Thanks, Apurv


From: PratikSoni2889 notifications@github.com Sent: Wednesday, November 15, 2017 5:12 AM Subject: [apurvgh/Dynamics365Samples] Not able to connect to Dynamics 365 Online (#1) To: apurvgh/Dynamics365Samples dynamics365samples@noreply.github.com Cc: Subscribed subscribed@noreply.github.com

Hi,

I'm trying to connect with trial version of Dynamics 365 (online). But in CRMToolingHelper.cs class file I'm receiving crmOrgService asnull. Because of these I'm not able to go ahead.

Can you please tell me what I'm missing with it.

Below is my App.Config settings:

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/apurvgh/Dynamics365Samples/issues/1, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AJ6uNRNT6T0cQBKKRh6Op8KWkOh5wUm7ks5s2scQgaJpZM4Qew3z.