Hello, I am trying to do a sample connection string, which worked when we were on dynamics crm 2015, but now that we are on 365 I am getting an error. Below is my Connection string that is failing, along with the error (I have used XXXX in place of my personal information, but it is there in my actual code).
<?xml version="1.0"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2"/>
</startup>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Xrm.Sdk" publicKeyToken="31bf3856ad364e35" culture="neutral" />
<bindingRedirect oldVersion="1.0.0.0-8.0.0.0" newVersion="7.0.0.0" />
</dependentAssembly>
<connectionStrings>
<!-- Online using Office 365 -->
<add name="CRMOnline" connectionString="Url=https://XXXXX.crm.dynamics.com; Username=XXXXXXXX; Password=XXXXXXXX; authtype=Office365"/>
</connectionStrings>
</configuration>
ERROR
Could not load file or assembly 'Microsoft.Xrm.Sdk, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)