Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Dynamics 365 Claim Based Internal Access | Authentication Failed

Posted on by 105

Hello Gays , 

I've a problem in my Dynamics 365 .

I configured Dynamics 365 for Claim Based Authentication internal access only ( without IFD)

I've dynamics 365 and ADFS on separate servers.

The problem is when I try to connect to Organization Service service using sdk C#

I've tried CrmServiceClient and Organization ServiceProxy Classes , but not working also 

I always receive error  "User Authentication Fails" : 

An unhandled exception of type 'System.InvalidOperationException' occurred in Microsoft.Xrm.Sdk.dll

Additional information: The user authentication failed!

at Microsoft.Xrm.Sdk.ClientExceptionHelper.Assert(Boolean condition, String message)
at Microsoft.Xrm.Sdk.Client.ServiceProxy`1.AuthenticateCore()
at Microsoft.Xrm.Sdk.Client.ServiceProxy`1.Authenticate()
at Microsoft.Xrm.Sdk.Client.ServiceProxy`1.ValidateAuthentication()
at Microsoft.Xrm.Sdk.Client.ServiceProxy`1.get_ServiceChannel()
at Microsoft.Xrm.Sdk.Client.ServiceContextInitializer`1.Initialize(ServiceProxy`1 proxy)
at Microsoft.Xrm.Sdk.Client.ServiceContextInitializer`1..ctor(ServiceProxy`1 proxy)
at Microsoft.Xrm.Sdk.Client.OrganizationServiceContextInitializer..ctor(OrganizationServiceProxy proxy)
at Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.CreateCore(Entity entity)
at Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.Create(Entity entity)
at TestShareRecords.Program.Main(String[] args) in d:\tfs\BLOME00101\b1000\Netways.Blom.CRM\TestShareRecords\Program.cs:line 145
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

How can I resolve this shit error.

Thanks ,

*This post is locked for comments

  • stern Profile Picture
    stern 95 on at
    RE: Dynamics 365 Claim Based Internal Access | Authentication Failed

    Hello Ahmed,

    As far as I can tell, that error message doesn't identify a specific issue - just a generic inability to connect. Do you recall exactly what steps or configurations you have taken so far?

    Without more specific information, my advice for you would be to go through the process again and make sure everything is as Microsoft recommends using the guidelines in the link below:

    technet.microsoft.com/.../gg188595.aspx

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans