I am trying to build a web service and connect to both Dynamics 365 Online with OAuth and Dynamics CRM 2011 with AD account.
The early-bound entities assembly(entities.cs) is located in different projects and generate .dll for web service uses.
In Dynamics CRM 2011, OrganizationServiceProxy can use EnableProxyTypes(Assembly) to load specify assembly to resolve the issue.
However, for Dynamics 365 Online, it seems has to use CrmServiceClient to build the connection and it do not have similar method to load specify assembly.
When I create CrmServiceClient and try to send a request, it will return following error message.
A proxy type with the name account has been defined by another assembly.
How can I load the correct assembly for Dynamics 365?