ADFS 2.0和MSIS7004异常 [英] ADFS 2.0 and the MSIS7004 Exception

查看:128
本文介绍了ADFS 2.0和MSIS7004异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



大家好!我试图让工作成为一个联邦服务器,但我结束了下一个错误,并且找不到解决方案。


我认为与WCF有关,但我不知道到底在哪里ADFS 2.0中WCF的配置文件。


我很感激一些帮助。


最好的问候,


Javier。


 


联邦被动请求期间遇到错误。



附加数据



例外详情:

Microsoft.IdentityServer.Web .RequestFailedException:MSIS7012:处理请求时发生错误。请联系您的管理员了解详情---> Microsoft.IdentityServer.Protocols.WSTrust.StsConnectionException:MSIS7004:连接到联合身份验证服务时发生
异常。服务端点URL'net.tcp:// localhost:1501 / adfs / services / trusttcp / windows'可能不正确或服务未运行。 ---> System.ServiceModel.CommunicationException:无法连接到net.tcp:// localhost:1501 / adfs / services / trusttcp / windows。
连接尝试持续的时间跨度为00:00:00。 TCP错误代码10013:尝试以其访问权限127.0.0.1:1501禁止访问套接字。  ---> System.Net.Sockets.SocketException:试图以其访问权限禁止的方式访问
套接字127.0.0.1:1501

  在System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot,SocketAddress socketAddress)

  在System.Net.Sockets.Socket.Connect(EndPoint remoteEP)

  在System.ServiceModel.Channels.SocketConnectionInitiator.Connect(Uri uri,TimeSpan超时)

   ---内部异常堆栈跟踪结束---



服务器堆栈跟踪:

  在System.ServiceModel.Channels.SocketConnectionInitiator.Connect(Uri uri,TimeSpan超时)

  在System.ServiceModel.Channels.BufferedConnectionInitiator.Connect(Uri uri,TimeSpan timeout)

  在System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan超时)

  在System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpen(TimeSpan超时)

  在System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan超时)

  在System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan超时)

  在System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan超时)

  在System.ServiceModel.Channels.ServiceChannel.CallOnceManager.CallOnce(TimeSpan超时,CallOnceManager级联)

  在System.ServiceModel.Channels.ServiceChannel.EnsureOpened(TimeSpan超时)

  在System.ServiceModel.Channels.ServiceChannel.Call(String action,Boolean oneway,ProxyOperationRuntime operation,Object [] ins,Object [] outs,TimeSpan timeout)

  在System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall,ProxyOperationRuntime操作)

   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
$


异常重新收回[0]:

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

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

  在Microsoft.IdentityModel.Protocols.WSTrust.IWSTrustContract.Issue(留言信息)

  在Microsoft.IdentityModel.Protocols.WSTrust.WSTrustChannel.Issue(留言信息)

  在Microsoft.IdentityServer.Protocols.WSTrust.WSTrustClientManager.IssueWorker(消息请求,布尔firstTry,WCFResponseData responseData)

   ---内部异常堆栈跟踪结束---

  在Microsoft.IdentityServer.Protocols.WSTrust.WSTrustClientManager.IssueWorker(消息请求,布尔firstTry,WCFResponseData responseData)

  在Microsoft.IdentityServer.Protocols.WSTrust.WSTrustClientManager.IssueWorker(消息请求,布尔firstTry,WCFResponseData responseData)

  在Microsoft.IdentityServer.Protocols.WSTrust.WSTrustClientManager.Issue(消息请求,WCFResponseData responseData)

  在Microsoft.IdentityServer.Protocols.WSTrust.WSTrustClient.Issue(RequestSecurityToken rst,WCFResponseData responseData)

  在Microsoft.IdentityServer.Web.FederationPassiveAuthentication.SubmitRequest(MSISRequestSecurityToken请求)

   ---内部异常堆栈跟踪结束---

  在Microsoft.IdentityServer.Web.FederationPassiveAuthentication.SubmitRequest(MSISRequestSecurityToken请求)

  在Microsoft.IdentityServer.Web.FederationPassiveAuthentication.RequestBearerToken(MSISSignInRequestMessage signInRequest,SecurityTokenElement onBehalfOf,SecurityToken primaryAuthToken,String desiredTokenType,Uri& replyTo)

  在Microsoft.IdentityServer.Web.FederationPassiveAuthentication.BuildSignInResponseCoreWithSecurityToken(SecurityToken securityToken,WSFederationMessage incomingMessage)

  在Microsoft.IdentityServer.Web.FederationPassiveAuthentication.BuildSignInResponseForProtocolRequest(FederationPassiveContext federationPassiveContext,SecurityToken securityToken)

  在Microsoft.IdentityServer.Web.FederationPassiveAuthentication.BuildSignInResponse(SecurityToken securityToken)



Microsoft.IdentityServer.Protocols.WSTrust.StsConnectionException:MSIS7004:连接到联合时发生异常服务。服务端点URL'net.tcp:// localhost:1501 / adfs / services / trusttcp / windows'可能不正确或服务
未运行。 ---> System.ServiceModel.CommunicationException:无法连接到net.tcp:// localhost:1501 / adfs / services / trusttcp / windows。连接尝试持续时间跨度为00:00:00。 TCP错误代码10013:尝试以其访问权限127.0.0.1:1501禁止的方式访问套接字
。  ---> System.Net.Sockets.SocketException:尝试以其访问权限禁止的方式访问套接字127.0.0.1:1501

  在System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot,SocketAddress socketAddress)

  在System.Net.Sockets.Socket.Connect(EndPoint remoteEP)

  在System.ServiceModel.Channels.SocketConnectionInitiator.Connect(Uri uri,TimeSpan超时)

   ---内部异常堆栈跟踪结束---



服务器堆栈跟踪:

  在System.ServiceModel.Channels.SocketConnectionInitiator.Connect(Uri uri,TimeSpan超时)

  在System.ServiceModel.Channels.BufferedConnectionInitiator.Connect(Uri uri,TimeSpan timeout)

  在System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan超时)

  在System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpen(TimeSpan超时)

  在System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan超时)

  在System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan超时)

  在System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan超时)

  在System.ServiceModel.Channels.ServiceChannel.CallOnceManager.CallOnce(TimeSpan超时,CallOnceManager级联)

  在System.ServiceModel.Channels.ServiceChannel.EnsureOpened(TimeSpan超时)

  在System.ServiceModel.Channels.ServiceChannel.Call(String action,Boolean oneway,ProxyOperationRuntime operation,Object [] ins,Object [] outs,TimeSpan timeout)

  在System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall,ProxyOperationRuntime操作)

   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
$


异常重新收回[0]:

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

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

  在Microsoft.IdentityModel.Protocols.WSTrust.IWSTrustContract.Issue(留言信息)

  在Microsoft.IdentityModel.Protocols.WSTrust.WSTrustChannel.Issue(留言信息)

  在Microsoft.IdentityServer.Protocols.WSTrust.WSTrustClientManager.IssueWorker(消息请求,布尔firstTry,WCFResponseData responseData)

   ---内部异常堆栈跟踪结束---

  在Microsoft.IdentityServer.Protocols.WSTrust.WSTrustClientManager.IssueWorker(消息请求,布尔firstTry,WCFResponseData responseData)

  在Microsoft.IdentityServer.Protocols.WSTrust.WSTrustClientManager.IssueWorker(消息请求,布尔firstTry,WCFResponseData responseData)

  在Microsoft.IdentityServer.Protocols.WSTrust.WSTrustClientManager.Issue(消息请求,WCFResponseData responseData)

  在Microsoft.IdentityServer.Protocols.WSTrust.WSTrustClient.Issue(RequestSecurityToken rst,WCFResponseData responseData)

  在Microsoft.IdentityServer.Web.FederationPassiveAuthentication.SubmitRequest(MSISRequestSecurityToken请求)



System.ServiceModel.CommunicationException:无法连接到net.tcp:// localhost:1501 / ADFS /服务/ trusttcp /窗口。连接尝试持续时间跨度为00:00:00。 TCP错误代码10013:尝试通过其访问权限127.0.0.1:1501禁止
访问套接字。  ---> System.Net.Sockets.SocketException:尝试以其访问权限禁止的方式访问套接字127.0.0.1:1501

  在System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot,SocketAddress socketAddress)

  在System.Net.Sockets.Socket.Connect(EndPoint remoteEP)

  在System.ServiceModel.Channels.SocketConnectionInitiator.Connect(Uri uri,TimeSpan超时)

   ---内部异常堆栈跟踪结束---



服务器堆栈跟踪:

  在System.ServiceModel.Channels.SocketConnectionInitiator.Connect(Uri uri,TimeSpan超时)

  在System.ServiceModel.Channels.BufferedConnectionInitiator.Connect(Uri uri,TimeSpan timeout)

  在System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan超时)

  在System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.OnOpen(TimeSpan超时)

  在System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan超时)

  在System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan超时)

  在System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan超时)

  在System.ServiceModel.Channels.ServiceChannel.CallOnceManager.CallOnce(TimeSpan超时,CallOnceManager级联)

  在System.ServiceModel.Channels.ServiceChannel.EnsureOpened(TimeSpan超时)

  在System.ServiceModel.Channels.ServiceChannel.Call(String action,Boolean oneway,ProxyOperationRuntime operation,Object [] ins,Object [] outs,TimeSpan timeout)

  在System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall,ProxyOperationRuntime操作)

   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
$


异常重新收回[0]:

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

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

  在Microsoft.IdentityModel.Protocols.WSTrust.IWSTrustContract.Issue(留言信息)

  在Microsoft.IdentityModel.Protocols.WSTrust.WSTrustChannel.Issue(留言信息)

  在Microsoft.IdentityServer.Protocols.WSTrust.WSTrustClientManager.IssueWorker(消息请求,布尔firstTry,WCFResponseData responseData)



System.Net.Sockets.SocketException:尝试了访问权限127.0.0.1:1501以
  在System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot,SocketAddress socketAddress)

  在System.Net.Sockets.Socket.Connect(EndPoint remoteEP)

  在System.ServiceModel.Channels.SocketConnectionInitiator.Connect(Uri uri,TimeSpan超时)






之前我有过这个


 


异常详情:

Microsoft.IdentityServer.Web.RequestFailedException :MSIS7012:处理请求时发生错误。请联系您的管理员了解详情---> Microsoft.IdentityServer.Protocols.WSTrust.StsConnectionException:MSIS7004:连接到联合身份验证服务时发生
异常。服务端点URL'net.tcp:// localhost:1501 / adfs / services / trusttcp / windows'可能不正确或服务未运行。 ---> System.ServiceModel.EndpointNotFoundException:主机
localhost不存在DNS条目。


 

解决方案

< blockquote>

在ADFS中启用了trusttcp端点吗?


这不是我通常在没有启用端点时得到的错误但是我想知道这个错误是否有所不同,因为大多数ADFS端点的数量超过http而不是tcp。对于http,我通常会收到服务器端点忙的消息。


谢谢,


Hi guys!. I am trying to get work a federated server but i end with the next error and a cannot find a solution out there.

I think is related with WCF, but i dont know really where is the config file for the WCF in the ADFS 2.0.

I appreciate some help on this.

Best Regards,

Javier.

 

Encountered error during federation passive request.

Additional Data

Exception details:
Microsoft.IdentityServer.Web.RequestFailedException: MSIS7012: An error occurred while processing the request. Contact your administrator for details. ---> Microsoft.IdentityServer.Protocols.WSTrust.StsConnectionException: MSIS7004: An exception occurred while connecting to the federation service. The service endpoint URL 'net.tcp://localhost:1501/adfs/services/trusttcp/windows' may be incorrect or the service is not running. ---> System.ServiceModel.CommunicationException: Could not connect to net.tcp://localhost:1501/adfs/services/trusttcp/windows. The connection attempt lasted for a time span of 00:00:00. TCP error code 10013: An attempt was made to access a socket in a way forbidden by its access permissions 127.0.0.1:1501.  ---> System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions 127.0.0.1:1501
   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
   at System.ServiceModel.Channels.SocketConnectionInitiator.Connect(Uri uri, TimeSpan timeout)
   --- End of inner exception stack trace ---

Server stack trace:
   at System.ServiceModel.Channels.SocketConnectionInitiator.Connect(Uri uri, TimeSpan timeout)
   at System.ServiceModel.Channels.BufferedConnectionInitiator.Connect(Uri uri, TimeSpan timeout)
   at System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan timeout)
   at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.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.ServiceChannel.CallOnceManager.CallOnce(TimeSpan timeout, CallOnceManager cascade)
   at System.ServiceModel.Channels.ServiceChannel.EnsureOpened(TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

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 Microsoft.IdentityModel.Protocols.WSTrust.IWSTrustContract.Issue(Message message)
   at Microsoft.IdentityModel.Protocols.WSTrust.WSTrustChannel.Issue(Message message)
   at Microsoft.IdentityServer.Protocols.WSTrust.WSTrustClientManager.IssueWorker(Message request, Boolean firstTry, WCFResponseData responseData)
   --- End of inner exception stack trace ---
   at Microsoft.IdentityServer.Protocols.WSTrust.WSTrustClientManager.IssueWorker(Message request, Boolean firstTry, WCFResponseData responseData)
   at Microsoft.IdentityServer.Protocols.WSTrust.WSTrustClientManager.IssueWorker(Message request, Boolean firstTry, WCFResponseData responseData)
   at Microsoft.IdentityServer.Protocols.WSTrust.WSTrustClientManager.Issue(Message request, WCFResponseData responseData)
   at Microsoft.IdentityServer.Protocols.WSTrust.WSTrustClient.Issue(RequestSecurityToken rst, WCFResponseData responseData)
   at Microsoft.IdentityServer.Web.FederationPassiveAuthentication.SubmitRequest(MSISRequestSecurityToken request)
   --- End of inner exception stack trace ---
   at Microsoft.IdentityServer.Web.FederationPassiveAuthentication.SubmitRequest(MSISRequestSecurityToken request)
   at Microsoft.IdentityServer.Web.FederationPassiveAuthentication.RequestBearerToken(MSISSignInRequestMessage signInRequest, SecurityTokenElement onBehalfOf, SecurityToken primaryAuthToken, String desiredTokenType, Uri& replyTo)
   at Microsoft.IdentityServer.Web.FederationPassiveAuthentication.BuildSignInResponseCoreWithSecurityToken(SecurityToken securityToken, WSFederationMessage incomingMessage)
   at Microsoft.IdentityServer.Web.FederationPassiveAuthentication.BuildSignInResponseForProtocolRequest(FederationPassiveContext federationPassiveContext, SecurityToken securityToken)
   at Microsoft.IdentityServer.Web.FederationPassiveAuthentication.BuildSignInResponse(SecurityToken securityToken)

Microsoft.IdentityServer.Protocols.WSTrust.StsConnectionException: MSIS7004: An exception occurred while connecting to the federation service. The service endpoint URL 'net.tcp://localhost:1501/adfs/services/trusttcp/windows' may be incorrect or the service is not running. ---> System.ServiceModel.CommunicationException: Could not connect to net.tcp://localhost:1501/adfs/services/trusttcp/windows. The connection attempt lasted for a time span of 00:00:00. TCP error code 10013: An attempt was made to access a socket in a way forbidden by its access permissions 127.0.0.1:1501.  ---> System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions 127.0.0.1:1501
   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
   at System.ServiceModel.Channels.SocketConnectionInitiator.Connect(Uri uri, TimeSpan timeout)
   --- End of inner exception stack trace ---

Server stack trace:
   at System.ServiceModel.Channels.SocketConnectionInitiator.Connect(Uri uri, TimeSpan timeout)
   at System.ServiceModel.Channels.BufferedConnectionInitiator.Connect(Uri uri, TimeSpan timeout)
   at System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan timeout)
   at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.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.ServiceChannel.CallOnceManager.CallOnce(TimeSpan timeout, CallOnceManager cascade)
   at System.ServiceModel.Channels.ServiceChannel.EnsureOpened(TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

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 Microsoft.IdentityModel.Protocols.WSTrust.IWSTrustContract.Issue(Message message)
   at Microsoft.IdentityModel.Protocols.WSTrust.WSTrustChannel.Issue(Message message)
   at Microsoft.IdentityServer.Protocols.WSTrust.WSTrustClientManager.IssueWorker(Message request, Boolean firstTry, WCFResponseData responseData)
   --- End of inner exception stack trace ---
   at Microsoft.IdentityServer.Protocols.WSTrust.WSTrustClientManager.IssueWorker(Message request, Boolean firstTry, WCFResponseData responseData)
   at Microsoft.IdentityServer.Protocols.WSTrust.WSTrustClientManager.IssueWorker(Message request, Boolean firstTry, WCFResponseData responseData)
   at Microsoft.IdentityServer.Protocols.WSTrust.WSTrustClientManager.Issue(Message request, WCFResponseData responseData)
   at Microsoft.IdentityServer.Protocols.WSTrust.WSTrustClient.Issue(RequestSecurityToken rst, WCFResponseData responseData)
   at Microsoft.IdentityServer.Web.FederationPassiveAuthentication.SubmitRequest(MSISRequestSecurityToken request)

System.ServiceModel.CommunicationException: Could not connect to net.tcp://localhost:1501/adfs/services/trusttcp/windows. The connection attempt lasted for a time span of 00:00:00. TCP error code 10013: An attempt was made to access a socket in a way forbidden by its access permissions 127.0.0.1:1501.  ---> System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions 127.0.0.1:1501
   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
   at System.ServiceModel.Channels.SocketConnectionInitiator.Connect(Uri uri, TimeSpan timeout)
   --- End of inner exception stack trace ---

Server stack trace:
   at System.ServiceModel.Channels.SocketConnectionInitiator.Connect(Uri uri, TimeSpan timeout)
   at System.ServiceModel.Channels.BufferedConnectionInitiator.Connect(Uri uri, TimeSpan timeout)
   at System.ServiceModel.Channels.ConnectionPoolHelper.EstablishConnection(TimeSpan timeout)
   at System.ServiceModel.Channels.ClientFramingDuplexSessionChannel.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.ServiceChannel.CallOnceManager.CallOnce(TimeSpan timeout, CallOnceManager cascade)
   at System.ServiceModel.Channels.ServiceChannel.EnsureOpened(TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

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 Microsoft.IdentityModel.Protocols.WSTrust.IWSTrustContract.Issue(Message message)
   at Microsoft.IdentityModel.Protocols.WSTrust.WSTrustChannel.Issue(Message message)
   at Microsoft.IdentityServer.Protocols.WSTrust.WSTrustClientManager.IssueWorker(Message request, Boolean firstTry, WCFResponseData responseData)

System.Net.Sockets.SocketException: An attempt was made to access a socket in a way forbidden by its access permissions 127.0.0.1:1501
   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
   at System.ServiceModel.Channels.SocketConnectionInitiator.Connect(Uri uri, TimeSpan timeout)


and previously i had this one

 

Exception details:
Microsoft.IdentityServer.Web.RequestFailedException: MSIS7012: An error occurred while processing the request. Contact your administrator for details. ---> Microsoft.IdentityServer.Protocols.WSTrust.StsConnectionException: MSIS7004: An exception occurred while connecting to the federation service. The service endpoint URL 'net.tcp://localhost:1501/adfs/services/trusttcp/windows' may be incorrect or the service is not running. ---> System.ServiceModel.EndpointNotFoundException: No DNS entries exist for host localhost.

 

解决方案

Is the trusttcp endpoint enabled in ADFS?

This is not the error I usually get when an endpoint is not enabled but I am wondering if maybe this error is different because most of the ADFS endpoints are over http rather than tcp. For http I usually get a message that the server endpoint is busy.

Thanks,


这篇关于ADFS 2.0和MSIS7004异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆