Hello ,
conn.OrganizationWebProxyClient.InnerChannel.OperationTimeout = new TimeSpan(0, Convert.ToInt16(ConfigurationManager.AppSettings["MDC_ServiceTimeOut"]), 0);
return conn.OrganizationWebProxyClient != null ? conn.OrganizationWebProxyClient : (IOrganizationService)conn.OrganizationServiceProxy;
This works fine. I have only concern that how We can authenticate the user which is not on cloud and having port number with the organization URI. see below example URL
"https://crm.organization.com:444/.
I am trying to to using oath type "Office365". but not getting succeeded.
Please advice on this.
MSFT published a page on just this topic to help guide you away from WSTrust and the OrganizationServiceProxy class. I think you'll find the answers you're looking for here.
Hello,
I'm not sure why do you need proxy at all. I use the following code in my apps that works transparently for both Online and On-Prem:
var conn = new CrmServiceClient("Your Valid Connection String");
if (!conn.IsReady)
{
//handle the connection issue here
}
//use conn object here
WarrenBelz
109
Most Valuable Professional
Michael E. Gernaey
82
Super User 2025 Season 1
mmbr1606
71
Super User 2025 Season 1