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?
This can happen when multiple early bound files are under the same namespace. Since both of those files contain the definitions for account entity, the compiler ends up giving this error.
To solve this error, remove one of those file’s reference and then clean & rebuild your solution afterwards.
Thanks!
Hi,
Please refer to this thread: stackoverflow.com/.../a-proxy-type-with-the-name-account-has-been-defined-by-another-assembly
Daivat Vartak (v-9d...
225
Super User 2025 Season 1
Vahid Ghafarpour
136
Super User 2025 Season 1
Eugen Podkorytov
106