Error running Client and Service programs  
Author Message
Sreekk





PostPosted: Windows Communication Foundation ("Indigo"), Error running Client and Service programs Top

Hi,

I have been trying to run the client and service programs on two different machines
which have different IP addresses. I was to run them on the same machine without any errors.
But different machines i got this error

Unhandled Exception: System.ServiceModel.FaultException: The request for security token could not be satisfied because authentication failed.

Here r the config files of my Client and Service

Service

< xml version="1.0" encoding="utf-8" >
<configuration>
<system.serviceModel>

<services>
<service
name="ProgrammingIndigo.ParcelService"
behaviorConfiguration="ParcelServiceBehavior">
<endpoint

address=" http://www.hide-link.com/ :8000/ParcelService/"

binding="wsHttpBinding"
bindingConfiguration="ParcelServiceBinding"
contract="ProgrammingIndigo.IParcelService" />
<endpoint
address=" http://www.hide-link.com/ :8000/ParcelService2/"
binding="wsHttpBinding"
bindingConfiguration="ParcelServiceBinding"
contract="ProgrammingIndigo.IParcelService2" />
</service>
</services>

<bindings>

<wsHttpBinding>
<binding name="ParcelServiceBinding">
<reliableSession enabled="true"/>
</binding>
</wsHttpBinding>
</bindings>

<behaviors>
<behavior
name="ParcelServiceBehavior"
returnUnknownExceptionsAsFaults="true" >
</behavior>
<behavior
name="ParcelServiceBehavior2"
returnUnknownExceptionsAsFaults="true" >
</behavior>
</behaviors>

</system.serviceModel>
</configuration>
For the client config is

< xml version="1.0" encoding="utf-8" >
<configuration>
<system.serviceModel>
<client>

<endpoint
name="ParcelServiceEndpoint"
address=" http://www.hide-link.com/ :8000/ParcelService/"
binding="wsHttpBinding"
bindingConfiguration="ParcelServiceBinding"
contract="ProgrammingIndigo.IParcelService" />
<endpoint
name="ParcelService2Endpoint"
address=" http://www.hide-link.com/ :8000/ParcelService2/"
binding="wsHttpBinding"
bindingConfiguration="ParcelServiceBinding"
contract="ProgrammingIndigo.IParcelService2" >

</endpoint>
</client>

<bindings>
<wsHttpBinding>
<binding name="ParcelServiceBinding" >
<reliableSession enabled="true"/>
</binding>
</wsHttpBinding>
</bindings>
</system.serviceModel>
</configuration>

Please let me know where to make the necessary changes in hte code.
I am very new to this programming. This is a sample program from Programming Indigo
but i repeat, i need to run this on two different machines/IP Address.

Thank you
Sree




Visual Studio 200816  
 
 
Scott Mason





PostPosted: Windows Communication Foundation ("Indigo"), Error running Client and Service programs Top

Can you give me more specifics of your application

Is your service self-hosted (console or Winform as opposed to IIS)

Are your machines running in the same domain

What is your client app and under what user account is is running

Thanks!

Scott



 
 
kumarkadali





PostPosted: Windows Communication Foundation ("Indigo"), Error running Client and Service programs Top

Thank for replying.

The application i am trying is an Example for Programming Indigo by David Pallmann.
The application is a console application.
Here is the link to the application in the book:
http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnlong/html/progindigoch5.asp

My intention is to modify the application give in the book to run on two different computers , whihc might be on different networks.

Is your service self-hosted (console or Winform as opposed to IIS)
The service is self hosted. Its is a console application.


Are your machines running in the same domain

As of now i am able to run the machines on the local host wiht no problem, but i need to run them on differnt machines, by giving the corressponding IP address's for the client and service.

What is your client app and under what user account is is running

I am not able to answer this question since i am new to this programming.
The client application also is self hosted application.

If you can spare time i could send you the zip file of my application

Thank you once again.

Sree


 
 
Adiavn





PostPosted: Windows Communication Foundation ("Indigo"), Error running Client and Service programs Top

Setting the IP for both machines doesn't mean you use the same domain.

Right click on "My computer", select "Properties" and go the tab "Computer name".

Your computer name should be something like "sree1.domain.com", and the domain should be the same in both computers.


 
 
Nico Vuyge





PostPosted: Windows Communication Foundation ("Indigo"), Error running Client and Service programs Top

Are these two machines in the same domain

You also don't have any certificates in your config file to identify your server.

Look at the traces on the server machine, they may have more information about what's going wrong.