tags:

views:

597

answers:

2

I'm running into a problem when modifying a WCF service.

The original service method looks like this:

[OperationContract(IsOneWay = true, IsInitiating = true, IsTerminating = false)]
void Login(string userName, string password);

This method works.

The problem is that when I change it to this:

[OperationContract(IsOneWay = false, IsInitiating = true, IsTerminating = false)]
bool Login(string userName, string password);

It stops working and times out.

Any ideas?

+1  A: 

Does tracing on the service show any exceptions? I've run into problems where a client will time out after running into some type of contract based issue within the service.

MattK
Now that you mention it, there is an exception on the server in the System.ServiceModel.dll. I'll have to drill down and see what's causing the exception.Thanks.
urini
+1  A: 

After modifying the web service did you update the client proxy (svcutil.exe)?

Darin Dimitrov
I was curious of the same thing. If you don't update your client you will definitely have issues.
Chris Porter