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

Announcements

No record found.

News and Announcements icon
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,218 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
    762 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 101 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 72

#3
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 69 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans