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的解决方法 也提到这个。

  • 相关阅读:
    Springboot2.0之HikariCP 连接池
    Spring Kafka中关于Kafka的配置参数
    Spring @Async异步线程池 导致OOM报错的原因
    JDK 8 函数式编程入门
    Spring自定义argumentResolver参数解析器
    Kafka消费异常处理
    Java项目生成可执行jar包、exe文件以及在Windows下的安装文件
    Mysql索引研究总结
    windows安装zookeeper
    JVM中的堆和栈
  • 原文地址:https://www.cnblogs.com/luoyong0201/p/Dynamics_365_Username_Not_Found_On_Secure_Token_Service.html
Copyright © 2011-2022 走看看