web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Problem to connect Dynamics 365 with Microsoft.Xrm.Tooling.Connector when there is multiple assemble

(0) ShareShare
ReportReport
Posted on by 5

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?

I have the same question (0)
  • Suggested answer
    meelamri Profile Picture
    13,216 User Group Leader on at

    Hi,

    Please refer to this thread: stackoverflow.com/.../a-proxy-type-with-the-name-account-has-been-defined-by-another-assembly

  • Inogic Profile Picture
    709 on at

    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!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 70 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 33 Most Valuable Professional

#3
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans