Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Integration Biztalk 2016 on premise and dynamics crm 2016 on premise problem

Posted on by 485

Dear my friends 

i did all the config based on this link 

social.technet.microsoft.com/.../32258.biztalk-server-2013-r2-integration-with-ms-dynamics-crm-2015.aspx

it seems all the thing are right , but i can not connect from biz talk to dynamics CRM. 

i configured send port , in binding part , it seems authentication has problem . 

the error is 

The NetworkCredentials provided were unable to create a Kerberos credential, see inner exception for details. —-> S
ystem.IdentityModel.Tokens.SecurityTokenException: InitializeSecurityContent failed. Ensure the service principal name is correct. —->

i have biztalk 2016 , dynamics crm 2016 on premise without ssl - 

thanks alot

*This post is locked for comments

  • mahan sadeghi Profile Picture
    mahan sadeghi 485 on at
    RE: Integration Biztalk 2016 on premise and dynamics crm 2016 on premise problem

    this is my last error

    The adapter failed to transmit message going to send port "WcfSendPort_OrganizationService_CustomBinding_IOrganizationService" with URL "192.168.123.69/.../Organization.svc". It will be retransmitted after the retry interval specified for this Send Port. Details:"System.ServiceModel.Security.SecurityNegotiationException: The caller was not authenticated by the service. ---> System.ServiceModel.FaultException: The request for security token could not be satisfied because authentication failed.

      at System.ServiceModel.Security.SecurityUtils.ThrowIfNegotiationFault(Message message, EndpointAddress target)

      at System.ServiceModel.Security.SspiNegotiationTokenProvider.GetNextOutgoingMessageBody(Message incomingMessage, SspiNegotiationTokenProviderState sspiState)

      --- End of inner exception stack trace ---

    Server stack trace:

      at System.ServiceModel.Security.IssuanceTokenProviderBase`1.DoNegotiation(TimeSpan timeout)

      at System.ServiceModel.Security.SspiNegotiationTokenProvider.OnOpen(TimeSpan timeout)

      at System.ServiceModel.Security.WrapperSecurityCommunicationObject.OnOpen(TimeSpan timeout)

      at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)

      at System.ServiceModel.Security.CommunicationObjectSecurityTokenProvider.Open(TimeSpan timeout)

      at System.ServiceModel.Security.SymmetricSecurityProtocol.OnOpen(TimeSpan timeout)

      at System.ServiceModel.Security.WrapperSecurityCommunicationObject.OnOpen(TimeSpan timeout)

      at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)

      at System.ServiceModel.Channels.SecurityChannelFactory`1.ClientSecurityChannel`1.OnOpen(TimeSpan timeout)

      at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)

      at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)

      at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)

      at System.ServiceModel.Channels.CommunicationObject.Open()

    Exception rethrown at [0]:

      at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)

      at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)

      at System.ServiceModel.ICommunicationObject.Open()

      at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfClient`2.GetChannel[TChannel](IBaseMessage bizTalkMessage, ChannelFactory`1& cachedFactory)

  • mahan sadeghi Profile Picture
    mahan sadeghi 485 on at
    RE: Integration Biztalk 2016 on premise and dynamics crm 2016 on premise problem

    i think the problem is on authentication mode and authentication schema

    i select kerbrose for authentication mode

    and basic for authentication schema

  • mahan sadeghi Profile Picture
    mahan sadeghi 485 on at
    RE: Integration Biztalk 2016 on premise and dynamics crm 2016 on premise problem

    i change the address from ip to url ,

    now the error changed

    It will be retransmitted after the retry interval specified for this Send Port. Details:"System.ServiceModel.Security.MessageSecurityException: An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail. ---> System.ServiceModel.FaultException: The message could not be processed because the action '<BtsActionMapping xmlns:xsi="www.w3.org/.../XMLSchema-instance&quot; xmlns:xsd="www.w3.org/.../XMLSchema&quot;>

     <Operation Name="Create" Action="schemas.microsoft.com/.../Create&quot; />

     <Operation Name="Retrieve" Action="schemas.microsoft.com/.../Retrieve&quot; />

     <Operation Name="Update" Action="schemas.microsoft.com/.../Update&quot; />

     <Operation Name="Delete" Action="schemas.microsoft.com/.../Delete&quot; />

     <Operation Name="Execute" Action="schemas.microsoft.com/.../Execute&quot; />

     <Operation Name="Associate" Action="schemas.microsoft.com/.../Associate&quot; />

     <Operation Name="Disassociate" Action="schemas.microsoft.com/.../Disassociate&quot; />

     <...' is invalid or unrecognized.

      --- End of inner exception stack trace ---

    Server stack trace:

      at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)

      at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult result)

      at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)

      at System.ServiceModel.Channels.ServiceChannel.EndRequest(IAsyncResult result)

    Exception rethrown at [0]:

      at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)

      at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)

      at System.ServiceModel.Channels.IRequestChannel.EndRequest(IAsyncResult result)

  • mahan sadeghi Profile Picture
    mahan sadeghi 485 on at
    RE: Integration Biztalk 2016 on premise and dynamics crm 2016 on premise problem

    thanks Radu for your reply , CRMppPool is running by network service

  • Suggested answer
    Radu Chiribelea Profile Picture
    Radu Chiribelea 6,667 on at
    RE: Integration Biztalk 2016 on premise and dynamics crm 2016 on premise problem

    Hi Mahan,

    Looks like an SPN issue from the error you pasted above.

    Under which account is the CRMAppPool running? is it network service or an AD User Account?

    If it's an AD user account, i'd suggest you check the SPNs if they are properly configured

    Please check following links for helpe:

    1. crmbusiness.wordpress.com/.../crm-2011-spns-can-be-hell

    2. blogs.msdn.microsoft.com/.../configuring-service-principal-names

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