Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Windos
win32.3rdparty
win32.directx.audio
win32.directx.ddk
win32.directx.graphics
win32.directx.input
win32.directx.managed
win32.directx.misc
win32.directx.networking
win32.directx.sdk
win32.directx.video
win32.dirx.grap.shaders
win32.gdi
win32.international
win32.kernel
win32.messaging
win32.mmedia
win32.networks
win32.ole
win32.rtc
win32.tapi
win32.tapi.beta
win32.tools
win32.ui
win32.wince
win32.wmi
windows.mediacenter
winfx.aero
winfx.announcements
winfx.avalon
winfx.collaboration
winfx.fundamentals
winfx.general
winfx.indigo
winfx.sdk
winfx.winfs
  
 
date: Thu, 26 Jun 2008 10:19:01 -0700,    group: microsoft.public.windows.developer.winfx.indigo        back       


WCF service authenticating   
Hello all,

I have problem with WCF service authenticating.  Please, take a look at the 
following code:

ProductsServiceClient proxy = new 
ProductsServiceClient("NetTcpBinding_IProductsService");
proxy.ClientCredentials.Windows.ClientCredential.Domain = "DAGREGI";
proxy.ClientCredentials.Windows.ClientCredential.UserName = "Bert";
proxy.ClientCredentials.Windows.ClientCredential.Password = "Pa$$w0rd";

ProductsServiceClient  is a ServiceContract. If I comment out three lines 
with credential info, everything is fine. In other case I received following 
exception:

SOAP security negotiation with 'net.tcp://localhost:8083/TcpProductsService' 
for target 'net.tcp://localhost:8083/TcpProductsService' failed. 
See inner exception for more details. 

Inner exception:
System.ServiceModel 
The message or signature supplied for verification has been altered

Example is taken directly from WCF Step By Step book, and it should be 
working.
I have no idea what is wrong. If you need some more information, please let 
me know.

Thanks!

-- 
Gregi
date: Thu, 26 Jun 2008 10:19:01 -0700   author:   Gregi

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us