CRM 2013 Developer Extensions: The specified user credentials are invalid. RRS feed

  • Question

  • 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"?>
        <section name="microsoft.xrm.client" type="Microsoft.Xrm.Client.Configuration.CrmSection, Microsoft.Xrm.Client"/>
          <add name="Xrm" type="Xrm.XrmServiceContext, Xrm" connectionStringName="Xrm"/>
            <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
        <add name="Xrm" connectionString="http://mysite.crm4.dynamics.com/XRMServices/2011/Organization.svc; Domain=MYDOMAIN, Username=myself@example.com; Password=mypassword"/>

    Wednesday, March 19, 2014 1:18 PM