我正在尝试访问 crm 2011 org,例如:
using (OrganizationService service = new OrganizationService("CrmConnection"))
{
}
connectionString 看起来像:
<connectionStrings>
<add name="CrmConnection" connectionString="Server=https://OurDomainName.OurDomainName.com;Username=TheUser;Password=ThePass" />
</connectionStrings>
当我运行代码时,它会抛出以下错误:
There was no endpoint listening at
http://adfslogin.OurDomainName.com/adfs/services/trust/13/username
that could accept the message. This is often caused by an incorrect address or SOAP action.
请注意,我可以使用 web.config 中指定的相同凭据访问 IE 中的 URL。
有人可以指出导致问题的我所缺少的吗?