Conexión a CRM

Necesito mi sitio web para conectarme a CRM, este es mi código

        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");
        }

y esto está en mi web.config

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

me da este mensaje de error:

"Se produjo un error crítico. No se pudo conectar con el servidor CRM. El llamante no fue autenticado por el servicio".

Respuestas a la pregunta(5)

Su respuesta a la pregunta