Hi, I am trying to follow the walkthrough example for crm developer extensions, in .net 4 C#. I have created the Xrm.cs file and added it to my project, along with the recommended dlls. The solution builds, but when I run it I get: The specified
user credentials are invalid. The credentials are my own and I am as System Admin. I have used those credentials to create the Xrm.cs file, in fact I altered them to be sure and I was denied access, so I know they are valid credentials. My
config file looks like the following, with the important details changed. Any help is appreciated.
<?xml version="1.0"?>
<configuration>
<configSections>
<section name="microsoft.xrm.client" type="Microsoft.Xrm.Client.Configuration.CrmSection, Microsoft.Xrm.Client"/>
</configSections>
<microsoft.xrm.client>
<contexts>
<add name="Xrm" type="Xrm.XrmServiceContext, Xrm" connectionStringName="Xrm"/>
</contexts>
</microsoft.xrm.client>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
<connectionStrings>
<add name="Xrm" connectionString="http://mysite.crm4.dynamics.com/XRMServices/2011/Organization.svc; Domain=MYDOMAIN, Username=myself@example.com; Password=mypassword"/>
</connectionStrings>
</configuration>