Anbindung an CRM

Ich benötige meine Website, um eine Verbindung zu CRM herzustellen. Dies ist mein Code

        var organizationUri = new Uri(ConfigurationManager.AppSettings["CRMServerUrl"]);

        //Client credentials
        var credentials = new ClientCredentials();
        credentials.UserName.UserName = @"<user>";
        credentials.UserName.Password = "<password>";
        // Use the Microsoft Dynamics CRM Online connection string from the web.config file named "CrmConnectionStr".
        using (OrganizationServiceProxy _service = new OrganizationServiceProxy(organizationUri, null, credentials, null))
        {
            Response.Write("Connected");
        }

und das ist in meiner web.config

 <add key="CRMServerUrl" value="http://XXXXX/XRMServices/2011/Organization.svc" />
<add key="username" value="<user>" />
<add key="password" value="<password>" />

es gibt mir diese Fehlermeldung:

"Ein kritischer Fehler ist aufgetreten. Es konnte keine Verbindung zum CRM-Server hergestellt werden. Der Anrufer wurde vom Dienst nicht authentifiziert."

Antworten auf die Frage(5)

Ihre Antwort auf die Frage