View Single Post
Old 04-11-2008   #1 (permalink)
DEE
Guest


 

using localhost v/s Environment.MachineName

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