Quantcast
Channel: Sam's Activities
Viewing all articles
Browse latest Browse all 3363

Issues connecting to Dynamics CRM server using the Visual Studio Dynamics SDK provided by Microsoft.

$
0
0

Hello all! I'm trying to connect to my Dynamics CRM Online 2015 server using the Quickstart VS project from microsoft in the SDK: https://www.microsoft.com/en-us/download/details.aspx?id=44567 ... Here's the tutorial I'm using: https://msdn.microsoft.com/en-us/library/gg334689.aspx ... And here's my issue: I put my credentials in the app.config file and uncommented the connection string I put it in, but I'm getting the error, "The username is not provided. Specify username in ClientCredentials." However, I need someone to tell me EXACTLY where I need to enter the credentials in ClientCredentials, as I'm 100% new to this and can't find where I put them in to save my life. Here's the code I have in the app.config file: 

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<connectionStrings>
<!-- Online using Office 365 -->
<add name="Server=CRM Online, organization=contoso, user=someone"
connectionString="Url=triseum.crm.dynamics.com; Username=laadams@triseum.onmicrosoft.com; Password=mypasswordwashere"/>

<!-- Online using Windows Live ID -->
<!-- <add name="Server=CRM Online, organization=contoso, user=someone@hotmail.com"
connectionString="Url=contoso.crm.dynamics.com; Username=someone@hotmail.com; Password=password; DeviceID=11hfn41bbqrg580vyvoea05abc; DevicePassword=fuqNIlx%e$.l*+ax_#8O4abc;"/>-->

<!-- On-premises with provided user credentials -->
<!-- <add name="Server=myserver, organization=AdventureWorksCycle, user=administrator"
connectionString="Url=myserver/AdventureWorksCycle; Domain=mydomain; Username=administrator; Password=password;"/> -->

<!-- On-premises using Windows integrated security -->
<!-- <add name="Server=myserver, organization=AdventureWorksCycle"
connectionString="Url=myserver/AdventureWorksCycle;"/> -->

<!-- On-Premises (IFD) with claims -->
<!--<add name="Server=litware.com, organization=contoso, user=someone@litware.com"
connectionString="Url=https://contoso.litware.com; Username=someone@litware.com; Password=password;"/>-->
</connectionStrings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>

<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Microsoft.Xrm.Sdk" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-7.0.0.0" newVersion="7.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Xrm.Sdk.Deployment" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-7.0.0.0" newVersion="7.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.ServiceBus" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.4.0.0" newVersion="2.4.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>


Viewing all articles
Browse latest Browse all 3363

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>