Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Dynamics CRM - CrmServieClient Unable to Login to Dynamics CRM - when merging tooling on console application

Posted on by Microsoft Employee

Hi,

I'm trying to ilmerge all assemblies needed to login to CRM with "Microsoft.CrmSdk.XrmTooling.CoreAssembly" packaged  on console application. But on merged .exe application I got error "CrmServieClient initalization failed with error Unable to Login to Dynamics CRM". 
Application without merging works CrmServieClient connects to CRM.

Packaged from tooling included in merge :

"Microsoft.IdentityModel.Clients.ActiveDirectory.dll",
"Microsoft.Crm.Sdk.Proxy.dll",
"Microsoft.Xrm.Sdk.dll",
"Microsoft.Xrm.Sdk.Deployment.dll",
"Microsoft.Xrm.Tooling.Connector.dll",

Those any one had such issue?

*This post is locked for comments

  • Suggested answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: Dynamics CRM - CrmServieClient Unable to Login to Dynamics CRM - when merging tooling on console application

    Hi Bartosz,

    Are you using Dynamics CRM online or onpremise?

    I have found similar post related to your issue for online . Hope this help.

    community.dynamics.com/.../239834

    community.dynamics.com/.../235290

    github.com/.../91

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Dynamics CRM - CrmServieClient Unable to Login to Dynamics CRM - when merging tooling on console application

    Hi Goutam,

    but without merging assemblies there is no error in connecting to CRM,

    Currently I have 8.2 sdk version but my crm is Dynamics CRM 365 v8.2

  • Suggested answer
    gdas Profile Picture
    gdas 50,085 on at
    RE: Dynamics CRM - CrmServieClient Unable to Login to Dynamics CRM - when merging tooling on console application

    Hi Bartosz,

    Which version of SDK are you using? If it's old version then replace the crm dll with new version of SDK from Nuget from visual studio.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans