DYNAMICS: A CONFIGURATION ELEMENT WITH THE NAME 'MSCRM' UNDER THE 'CONTEXTS' COLLECTION DOES NOT EXIST.
Nuestro buen amigo Pablo Peralta nos comparte su artículo:
A CONFIGURATION ELEMENT WITH THE NAME 'MSCRM' UNDER THE 'CONTEXTS' COLLECTION DOES NOT EXIST.
I was developing a ConsoleApp to connect to my Dynamics CRM 2011 deployment and when tried to instantiate the ServiceContext of my Xrm model this way:
var crm = new MyXrm.MyXrmServiceContext("MSCRM");
I got the Exception:
A configuration element with the name 'MSCRM' under the 'contexts' collection does not exist.
In my App.config my key was set up like this:
<connectionStrings>
<add name="MSCRM" connectionString="Authentication Type=AD;
Server=https://myserver/myorg;User ID=mydomain\user;Password=pass" />
</connectionStrings>
Pretty odd as I have followed the steps stated here to create a Console App from scratch.
Ver más aquí.
Saludos.
Fernando García Loera (Community Program Manager – Latin America Region)