It all depends on you client config.
Your client is trying to authenticate via Kerberos using an SPN or UPN. When
using localhost the client will default to NTLM since it cannot use
kerberos, while using the hostname it'll try kerberos.
Show us your client configuration, the part inside the <client>...</client>
tag.
Tiago Halm
"DEE" <tsdeepak@xxxxxx> wrote in message
news:214f1e4d-2c2d-4629-a5ee-0a92820315f6@xxxxxx
| Quote: |  | |
|
> Hi There ,
>
> i am using wshttpbinding with client credentials set to windows .my
> service address looks like this
> "http://localhost:2005/SampleService" when this address is mentioned
> the service/client works perfect.
>
> but i want to replace "localhost" with "Environment.MachineName" so
> my address will look like
> http://mymachinename:2005/SampleService ,when this address is used the
> call to service fail
> the error message is something like this
> "SOAP security negotiation with 'http://mymachinename:2005/
> SampleService' for target 'http://mymachinename:2005/SampleService'
> failed. See inner exception for more details."
>
> and the inner exception is "Security Support Provider Interface (SSPI)
> authentication failed. The server may not be running in an account
> with identity 'host/mymachinename'. If the server is running in a
> service account (Network Service for example), specify the account's
> ServicePrincipalName as the identity in the EndpointAddress for the
> server. If the server is running in a user account, specify the
> account's UserPrincipalName as the identity in the EndpointAddress for
> the server"
>
> now my question is why does this work with localhost and not with
> Environment.MachineName
>
> could any body throw some light on this.
>
>
>
> Regards
> DEE
>
>
> PS: my windows HOST file has this entry 127.0.0.1 localhost | |
| | |