Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Indigo

Vista - WCF example on 2 machines

 
 
Old 06-13-2006   #1 (permalink)
Arkady Frenkel


 
 

WCF example on 2 machines

Hi , all!

When I tried to run SelfHosted WCF example on different machines ( that
work great on the same machine ) I receive next for wsHttpBinding
( for basicHttpBinding that work as a charm ) even with all settings from
http://windowssdk.msdn.microsoft.com...0221260113.asp


Unhandled Exception:
System.ServiceModel.Security.SecurityNegotiationException:
Soap security negotiation to 'http://arkady-xp.domain:8000/servicemo
delsamples/service' failed. Please see inner exception for more
details. ---> Sy
stem.ComponentModel.Win32Exception: The logon attempt failed
at
System.ServiceModel.Security.WindowsSspiNegotiation.GetOutgoingBlob(Byte[]
incomingBlob)
at
System.ServiceModel.Security.SspiNegotiationTokenProvider.GetNextOutgoingM
essageBody(Message incomingMessage, SspiNegotiationTokenProviderState
sspiState)

at
System.ServiceModel.Security.IssuanceTokenProviderBase`1.GetNextOutgoingMe
ssage(Message incomingMessage, T negotiationState)
at
System.ServiceModel.Security.IssuanceTokenProviderBase`1.DoNegotiation(Tim
eSpan timeout)
--- End of inner exception stack trace ---

Server stack trace:
at
System.ServiceModel.Security.IssuanceTokenProviderBase`1.DoNegotiation(Tim
eSpan timeout)
at
System.ServiceModel.Security.IssuanceTokenProviderBase`1.GetTokenCore(Time
Span timeout)
at System.IdentityModel.Selectors.SecurityTokenProvider.GetToken(TimeSpan
tim
eout)

Any comments ?
TIA
Arkady



My System SpecsSystem Spec
Old 06-14-2006   #2 (permalink)
Arkady Frenkel


 
 

Re: WCF example on 2 machines

Additionally :
When I changed client and server machines : the next text on client appear
Unhandled Exception:
System.ServiceModel.Security.SecurityNegotiationException:
Soap security negotiation to
'http://arkadixp.rokonet_tree.local:8000/servicemod
elsamples/service' failed. Please see inner exception for more details. --->
Sys
tem.ComponentModel.Win32Exception: SSPI authentication failed. This may be
becau
se the server is not running in an account with identity
'host/arkadixp.domain'. If the server is running in a service account
(Network Service for
example), please consider specifying the account's ServicePrincipalName
(SPN) as
the identity in the EndpointAddress for the server. If the server is
running in
a user account, please consider specifying the account's UserPrincipalName
(UPN
) as the identity in the EndpointAddress for the server.
at
System.ServiceModel.Security.WindowsSspiNegotiation.GetOutgoingBlob(Byte[]
incomingBlob)

.....
TIA
Arkady

"Arkady Frenkel" <arkadyf@hotmailxdotx.com> wrote in message
news:OBjR9PwjGHA.412@TK2MSFTNGP05.phx.gbl...
> Hi , all!
>
> When I tried to run SelfHosted WCF example on different machines ( that
> work great on the same machine ) I receive next for wsHttpBinding
> ( for basicHttpBinding that work as a charm ) even with all settings from
> http://windowssdk.msdn.microsoft.com...0221260113.asp
>
>
> Unhandled Exception:
> System.ServiceModel.Security.SecurityNegotiationException:
> Soap security negotiation to 'http://arkady-xp.domain:8000/servicemo
> delsamples/service' failed. Please see inner exception for more
> details. ---> Sy
> stem.ComponentModel.Win32Exception: The logon attempt failed
> at
> System.ServiceModel.Security.WindowsSspiNegotiation.GetOutgoingBlob(Byte[]
> incomingBlob)
> at
> System.ServiceModel.Security.SspiNegotiationTokenProvider.GetNextOutgoingM
> essageBody(Message incomingMessage, SspiNegotiationTokenProviderState
> sspiState)
>
> at
> System.ServiceModel.Security.IssuanceTokenProviderBase`1.GetNextOutgoingMe
> ssage(Message incomingMessage, T negotiationState)
> at
> System.ServiceModel.Security.IssuanceTokenProviderBase`1.DoNegotiation(Tim
> eSpan timeout)
> --- End of inner exception stack trace ---
>
> Server stack trace:
> at
> System.ServiceModel.Security.IssuanceTokenProviderBase`1.DoNegotiation(Tim
> eSpan timeout)
> at
> System.ServiceModel.Security.IssuanceTokenProviderBase`1.GetTokenCore(Time
> Span timeout)
> at
> System.IdentityModel.Selectors.SecurityTokenProvider.GetToken(TimeSpan tim
> eout)
>
> Any comments ?
> TIA
> Arkady
>
>



My System SpecsSystem Spec
Old 06-14-2006   #3 (permalink)
Arkady Frenkel


 
 

Re: WCF example on 2 machines

Solved :
<identity><servicePrincipalName /></identity> on client config did it.
Strange that<userPrincipalName /> didn't help nevertheless I run service
as consonle app and not as win service
Arkady

"Arkady Frenkel" <arkadyf@hotmailxdotx.com> wrote in message
news:uKFvoo4jGHA.4776@TK2MSFTNGP05.phx.gbl...
> Additionally :
> When I changed client and server machines : the next text on client appear
> Unhandled Exception:
> System.ServiceModel.Security.SecurityNegotiationException:
> Soap security negotiation to
> 'http://arkadixp.rokonet_tree.local:8000/servicemod
> elsamples/service' failed. Please see inner exception for more
> details. ---> Sys
> tem.ComponentModel.Win32Exception: SSPI authentication failed. This may be
> becau
> se the server is not running in an account with identity
> 'host/arkadixp.domain'. If the server is running in a service account
> (Network Service for
> example), please consider specifying the account's ServicePrincipalName
> (SPN) as
> the identity in the EndpointAddress for the server. If the server is
> running in
> a user account, please consider specifying the account's UserPrincipalName
> (UPN
> ) as the identity in the EndpointAddress for the server.
> at
> System.ServiceModel.Security.WindowsSspiNegotiation.GetOutgoingBlob(Byte[]
> incomingBlob)
>
> ....
> TIA
> Arkady
>
> "Arkady Frenkel" <arkadyf@hotmailxdotx.com> wrote in message
> news:OBjR9PwjGHA.412@TK2MSFTNGP05.phx.gbl...
>> Hi , all!
>>
>> When I tried to run SelfHosted WCF example on different machines ( that
>> work great on the same machine ) I receive next for wsHttpBinding
>> ( for basicHttpBinding that work as a charm ) even with all settings from
>> http://windowssdk.msdn.microsoft.com...0221260113.asp
>>
>>
>> Unhandled Exception:
>> System.ServiceModel.Security.SecurityNegotiationException:
>> Soap security negotiation to 'http://arkady-xp.domain:8000/servicemo
>> delsamples/service' failed. Please see inner exception for more
>> details. ---> Sy
>> stem.ComponentModel.Win32Exception: The logon attempt failed
>> at
>> System.ServiceModel.Security.WindowsSspiNegotiation.GetOutgoingBlob(Byte[]
>> incomingBlob)
>> at
>> System.ServiceModel.Security.SspiNegotiationTokenProvider.GetNextOutgoingM
>> essageBody(Message incomingMessage, SspiNegotiationTokenProviderState
>> sspiState)
>>
>> at
>> System.ServiceModel.Security.IssuanceTokenProviderBase`1.GetNextOutgoingMe
>> ssage(Message incomingMessage, T negotiationState)
>> at
>> System.ServiceModel.Security.IssuanceTokenProviderBase`1.DoNegotiation(Tim
>> eSpan timeout)
>> --- End of inner exception stack trace ---
>>
>> Server stack trace:
>> at
>> System.ServiceModel.Security.IssuanceTokenProviderBase`1.DoNegotiation(Tim
>> eSpan timeout)
>> at
>> System.ServiceModel.Security.IssuanceTokenProviderBase`1.GetTokenCore(Time
>> Span timeout)
>> at
>> System.IdentityModel.Selectors.SecurityTokenProvider.GetToken(TimeSpan
>> tim
>> eout)
>>
>> Any comments ?
>> TIA
>> Arkady
>>
>>

>
>



My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
using a VM on 2 different machines Virtual PC
a tip for virtual machines Vista General
I can see my XP machines, and my XP machines can see my Vista Mach Vista networking & sharing
Why doesn't Vista see other machines? Vista networking & sharing


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46