Metadata contains a reference that cannot be resolved:

HI,

I'm trying to use the Sample STS server on a Windows 2003 EE machine. The server runs fine on

http://sts.mycompany.com:7000/sample/trust/smartcard/sts

https://sts.mycompany.com:7001/sample/trust/smartcard/mex

etc...

but when trying to contact it I get the following error.

There was a failure making a WS-Trust exchange with an external application. The Identity provider end point was not found.

Inner Exception: Metadata contains a reference that cannot be resolved: 'https://sts.mycompany.com:7001/sample/trust/usernamepassword/mex'.

Inner Exception: The underlying connection was closed: An unexpected error occurred on a send.

Inner Exception: Authentication failed because the remote party has closed the transport stream.

I already run httpcfg to set the ssl certificate.

Any idea?

Thanks!

Claudio

[1366 byte] By [claudio32] at [2007-12-27]
# 1

It would look like you are trying to use a managed card for Username and password, but your STS urls would hint to me that you are trying to get a certificate based one working.

What are you trying to accomplish?

g


Garrett Serack | Program Manager |Federated Identity Team | Microsoft Corporation
blog:http://blogs.msdn.com/garretts

GarrettSerack-MSFT at 2007-9-4 > top of Msdn Tech,Software Development for Windows Vista,Windows CardSpace (InfoCard)...
# 2
Hi,
thanks for the reply.
Actually I tried both with a cert-backed and with a UP-backed managed card. The STS server is listening for any kind of request:

Listener = http://sts.mycompany.com:7000/sample/trust/smartcard/sts, State = Opened
Listener = https://sts.
mycompany.com:7001/sample/trust/smartcard/mex, State = Opened
Listener = http://sts.
mycompany.com:7000/sample/trust/smartcard, State = Opened
Listener = http://sts.
mycompany.com:7000/sample/trust/selfissuedsaml/sts, State =Opened
Listener = https://sts.
mycompany.com:7001/sample/trust/selfissuedsaml/mex, State = Opened
Listener = http://sts.
mycompany.com:7000/sample/trust/selfissuedsaml, State = Opened
Listener = http://sts.
mycompany.com:7000/sample/trust/usernamepassword/sts, State= Opened
Listener = https://sts.
mycompany.com:7001/sample/trust/usernamepassword/mex, State = Opened
Listener = http://sts.
mycompany.com:7000/sample/trust/usernamepassword, State = Opened

When I try with a cert-backed I get an error message saying that no cert can be found, while when I try with a UP-backed card I get the error saying:

There was a failure making a WS-Trust exchange with an external application. The Identity provider end point was not found.
Inner Exception: Metadata contains a reference that cannot be resolved: 'https://sts.mycompany.com:7001/sample/trust/usernamepassword/mex'.
Inner Exception: The underlying connection was closed: An unexpected error occurred on a send.
Inner Exception: Authentication failed because the remote party has closed the transport stream.

regards,
Claudio

claudio32 at 2007-9-4 > top of Msdn Tech,Software Development for Windows Vista,Windows CardSpace (InfoCard)...
# 3

I answer to myself,

I had to set the SSL certificate (on the localhost) as follows:

httpcfg set ssl -i 127.0.0.1:7001 -h "d47de657fa4902555902cb7f0edd2ba9b05debb8"

there was an extra whitespace in the script...

Claudio

claudio32 at 2007-9-4 > top of Msdn Tech,Software Development for Windows Vista,Windows CardSpace (InfoCard)...
# 4

I am getting the same problem and have followed all the solutions posted, httpcfg etc.... I'm simply trying to get the STS Sample working.

I can browse to the mex address and get a file download dialog which then fails. The event log is included below:

Any help would be greatly appreciated

Dan...

Event Type: Error
Event Source: CardSpace 3.0.0.0
Event Category: General
Event ID: 273
Date: 08/05/2007
Time: 17:49:27
User: WINXPVM\dan1980

Computer: WINXPVM
Description:
There was a failure making a WS-Trust exchange with an external application. The Identity provider end point was not found.

Inner Exception: Metadata contains a reference that cannot be resolved: 'https://www.fabrikam.com:7001/sample/trust/usernamepassword/mex'.
Inner Exception: The operation has timed out


Additional Information:
Microsoft.InfoCards.TrustExchangeException: The Identity provider end point was not found. > System.InvalidOperationException: Metadata contains a reference that cannot be resolved: 'https://www.fabrikam.com:7001/sample/trust/usernamepassword/mex'. > System.Net.WebException: The operation has timed out
at System.Net.HttpWebRequest.GetResponse()
at System.ServiceModel.Description.MetadataExchangeClient.MetadataLocationRetriever.DownloadMetadata(TimeoutHelper timeoutHelper)
at System.ServiceModel.Description.MetadataExchangeClient.MetadataRetriever.Retrieve(TimeoutHelper timeoutHelper)
End of inner exception stack trace
at System.ServiceModel.Description.MetadataExchangeClient.MetadataRetriever.Retrieve(TimeoutHelper timeoutHelper)
at System.ServiceModel.Description.MetadataExchangeClient.ResolveNext(ResolveCallState resolveCallState)
at System.ServiceModel.Description.MetadataExchangeClient.GetMetadata(MetadataRetriever retriever)
at System.ServiceModel.Description.MetadataExchangeClient.GetMetadata(Uri address, MetadataExchangeClientMode mode)
at Microsoft.InfoCards.RemoteTokenFactory.DoMexExchange(TokenCreationParameter param, IWebProxy proxy)
End of inner exception stack trace

dan1980 at 2007-9-4 > top of Msdn Tech,Software Development for Windows Vista,Windows CardSpace (InfoCard)...

Software Development for Windows Vista

Site Classified