Exception in WSE 2.0 example

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • aualias

    Exception in WSE 2.0 example

    I am trying to run the Secure Conversation example in WSE 2.0.
    On the call to client.IssueSec urityContextTok enAuthenticated (token,
    issuerToken);
    I get the following exception:

    System.Web.Serv ices.Protocols. SoapException:
    SOAP-Fault code: http://schemas.xmlsoap.org/soap/envelope/:Server
    Message: Server unavailable, please try later
    at
    Microsoft.Web.S ervices2.Messag ing.SoapClient. SendRequestResp onse(String
    methodname, SoapEnvelope envelope)
    at
    Microsoft.Web.S ervices2.Securi ty.SecurityToke nServiceClient. RequestSecurity Token(SecurityT okenMessage
    request, String methodName) at
    Microsoft.Web.S ervices2.Securi ty.SecurityCont extTokenService Client.RequestS ecurityContextT oken(SecurityTo ken
    baseToken, SecurityToken issuerToken, AppliesTo appliesTo)
    at
    Microsoft.Web.S ervices2.Securi ty.SecurityCont extTokenService Client.IssueSec urityContextTok enAuthenticated (SecurityToken
    baseToken, SecurityToken issuerToken)
    at SecureConvClien t.SecureConvCli ent.Run() in
    d:\work\tests1\ securitytestsws e\secureconvcod eclient\securec onvclient.cs:li ne
    91
    at SecureConvClien t.SecureConvCli ent.Main(String[] args) in
    d:\work\tests1\ securitytestsws e\secureconvcod eclient\securec onvclient.cs:li ne
    55

    This is all being run locally on a Server 2003 machine with IIS 6.0. I
    believe that I have installed the certificates correctly (emphasis on
    believe...).
    The client private cert is in Current User/Personal.
    The server private cert is in Local Computer/Personal.
    The server public cert in in Current User/Other People

    Any ideas where this is coming from?

    Thanks.

    David



  • aualias

    #2
    Re: Exception in WSE 2.0 example

    Figured it out...

    I just had to give IIS read access to the certificate. I don't think that
    this was mentioned anywhere in the documentation.


    "aualias" <aualias@newsgr oups.nospam> wrote in message
    news:OBGuK0$XFH A.3320@TK2MSFTN GP12.phx.gbl...[color=blue]
    >I am trying to run the Secure Conversation example in WSE 2.0.
    > On the call to client.IssueSec urityContextTok enAuthenticated (token,
    > issuerToken);
    > I get the following exception:
    >
    > System.Web.Serv ices.Protocols. SoapException:
    > SOAP-Fault code: http://schemas.xmlsoap.org/soap/envelope/:Server
    > Message: Server unavailable, please try later
    > at
    > Microsoft.Web.S ervices2.Messag ing.SoapClient. SendRequestResp onse(String
    > methodname, SoapEnvelope envelope)
    > at
    > Microsoft.Web.S ervices2.Securi ty.SecurityToke nServiceClient. RequestSecurity Token(SecurityT okenMessage
    > request, String methodName) at
    > Microsoft.Web.S ervices2.Securi ty.SecurityCont extTokenService Client.RequestS ecurityContextT oken(SecurityTo ken
    > baseToken, SecurityToken issuerToken, AppliesTo appliesTo)
    > at
    > Microsoft.Web.S ervices2.Securi ty.SecurityCont extTokenService Client.IssueSec urityContextTok enAuthenticated (SecurityToken
    > baseToken, SecurityToken issuerToken)
    > at SecureConvClien t.SecureConvCli ent.Run() in
    > d:\work\tests1\ securitytestsws e\secureconvcod eclient\securec onvclient.cs:li ne
    > 91
    > at SecureConvClien t.SecureConvCli ent.Main(String[] args) in
    > d:\work\tests1\ securitytestsws e\secureconvcod eclient\securec onvclient.cs:li ne
    > 55
    >
    > This is all being run locally on a Server 2003 machine with IIS 6.0. I
    > believe that I have installed the certificates correctly (emphasis on
    > believe...).
    > The client private cert is in Current User/Personal.
    > The server private cert is in Local Computer/Personal.
    > The server public cert in in Current User/Other People
    >
    > Any ideas where this is coming from?
    >
    > Thanks.
    >
    > David
    >
    >
    >[/color]


    Comment

    Working...