zoukankan      html  css  js  c++  java
  • 浏览器登录Dynamics 365 CE没毛病,程序连接却报错。

    摘要: 微软动态CRM专家罗勇 ,回复308或者20190308可方便获取本文,同时可以在第一间得到我发布的最新博文信息,follow me!我的网站是 www.luoyong.me 。

    今天我做实验的时候碰到的,程序连接报错的信息如下:

    The authentication endpoint Username was not found on the configured Secure Token Service! 

    我用浏览器同样的账号可以登录啊,怎么回事。

    上服务器查看,可以看到AD FS的日志中包括如下错误(Event ID为102,Source为AD FS):

    There was an error in enabling endpoints of Federation Service. Fix configuration errors using PowerShell cmdlets and restart the Federation Service.

    Additional Data
    Exception details:
    System.ServiceModel.AddressAlreadyInUseException: There is already a listener on IP endpoint 0.0.0.0:808. This could happen if there is another application already listening on this endpoint or if you have multiple service endpoints in your service host with the same IP endpoint but with incompatible binding configurations. ---> System.Net.Sockets.SocketException: Only one usage of each socket address (protocol/network address/port) is normally permitted
    at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress)
    at System.Net.Sockets.Socket.Bind(EndPoint localEP)
    at System.ServiceModel.Channels.SocketConnectionListener.Listen()
    --- End of inner exception stack trace ---
    at System.ServiceModel.Channels.SocketConnectionListener.Listen()
    at System.ServiceModel.Channels.ExclusiveTcpTransportManager.OnOpen()
    at System.ServiceModel.Channels.TransportManager.Open(TransportChannelListener channelListener)
    at System.ServiceModel.Channels.TransportManagerContainer.Open(SelectTransportManagersCallback selectTransportManagerCallback)
    at System.ServiceModel.Channels.TransportChannelListener.OnOpen(TimeSpan timeout)
    at System.ServiceModel.Channels.ConnectionOrientedTransportChannelListener.OnOpen(TimeSpan timeout)
    at System.ServiceModel.Channels.TcpChannelListener`2.OnOpen(TimeSpan timeout)
    at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
    at System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan timeout)
    at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
    at System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)
    at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
    at Microsoft.IdentityServer.ServiceHost.STSService.StartSTSService(ServiceHostManager serviceHostManager, ServiceState serviceState)

    看到这个错误就知道了。因为我的环境是所有的都安装在同一台服务器上导致的,解决方法也很简单,打开PowerShell执行下如下命令:

    Set-ADFSProperties –nettcpport 809

    然后再重启下AD FS服务即可。

    博客园另外一篇博文:Dynamics CRM2013 Server2012R2下IFD部署遇到There is already a listener on IP endpoint的解决方法 也提到这个。

  • 相关阅读:
    pdf工具类之合并pdf文件
    Java 处理不可见特殊字符的坑
    将本地的jar包加到maven中,pom添加依赖
    SQLServer常用个技巧(一):根据某字符截取后面的字符串,String转int
    java下载文件写的工具类
    使用SWFTools将pdf转成swf
    使用openOffice将office文件转成pdf
    poi处理excel基本操作时写的工具类
    poi处理excel的合并单元格写的工具类,支持xlsx和xls
    java有关正则表达式的工具方法集合1
  • 原文地址:https://www.cnblogs.com/luoyong0201/p/Dynamics_365_Username_Not_Found_On_Secure_Token_Service.html
Copyright © 2011-2022 走看看