System.ArgumentNullException: Organization cannot be null or empty.
Parameter name: Organization Name
at Microsoft.Xrm.Tooling.Connector.CrmServiceClient.ConnectToCrmWebService(String crmConnectionString)
我的连接字符串是
<add name="CRM" connectionString="AuthType=AD;Url=domain:80/ashok; Domain=domain; Username=username; Password=pwd" />
答案 0 :(得分:2)
确保传递连接字符串,而不是连接字符串名称:
CrmServiceClient conn = new Microsoft.Xrm.Tooling.Connector.CrmServiceClient(
ConfigurationManager.ConnectionStrings["CRM"].ConnectionString);`
答案 1 :(得分:1)
通过在网址中添加http://
来尝试此操作:
<add name="CRM" connectionString="AuthType=AD;Url=http://domain:80/Configit; Domain=domain; Username=username; Password=pwd" />
这是一个简单的错过。