Hello, I´m using VS 2016, I have this error:
this is the code:
The error comes out reaching this part: IOrganizationService service = (IOrganizationService)osProxy;
*This post is locked for comments
Hello, I´m using VS 2016, I have this error:
this is the code:
The error comes out reaching this part: IOrganizationService service = (IOrganizationService)osProxy;
*This post is locked for comments
You´re right, I´ve commented the line of ProxyTypesBehavior and the program works!
Thanks.
Hi Jhon,
Is the error on the osProxy.Service.Configuration.CurrentServiceEndpoint.Behaviors.Add line or on the service = (IOrganizationService)oxProxy line?
Can you check before the osProxy.Service.Configuration.CurrentServiceEndpoint.Behaviors.Add line if osProxy.Service.Configuration.CurrentServiceEndpoint.Behaviors has any values in it already?
You might not need it, or possibly check if it has values before calling the Add method of the class.
André Arnaud de Cal... 291,280 Super User 2024 Season 2
Martin Dráb 230,235 Most Valuable Professional
nmaenpaa 101,156