Skip to main content

Notifications

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?

  • Inogic Profile Picture
    502 on at
    RE: Problem to connect Dynamics 365 with Microsoft.Xrm.Tooling.Connector when there is multiple assemble

    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!

  • Suggested answer
    meelamri Profile Picture
    13,216 User Group Leader on at
    RE: Problem to connect Dynamics 365 with Microsoft.Xrm.Tooling.Connector when there is multiple assemble

    Hi,

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

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 225 Super User 2025 Season 1

#2
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 136 Super User 2025 Season 1

#3
Eugen Podkorytov Profile Picture

Eugen Podkorytov 106

Overall leaderboard

Product updates

Dynamics 365 release plans