1

I had a operation contract with an int perameter, due to some reason I modified that to Guid and I update service refrence in client proxy project(it's in same solution).

But my client proxy is not update, it is still showing me the peramter as int. I also tried by deleting the service refrence and add service ref. again.

[OperationContract]
    [TransactionFlow(TransactionFlowOption.Allowed)]
    MembershipCreateStatus CreateUser(string application, string userName, string password, string email, string passwordQuestion, string passwordAnswer, bool isApproved, Guid branchId, string branchName);

The branchId perameter was previously int.

4

3 回答 3

1

我尝试了所有建议,最后我将构建输出路径从bin/debug 更改为 bin并解决了错误。

于 2012-08-14T06:30:53.797 回答
0

请交叉检查以下内容,

  1. 您正在更新相同的参考,您进行了更改

  2. 修改服务后,确保编译、运行并再次托管。

情况可能是您在代码中修改了服务,但仍然引用以前托管的服务...

我希望它有帮助

谢谢 DJ

@调试模式

于 2012-08-12T03:42:02.563 回答
0

服务正常运行后,您需要运行svcutil工具来重新生成客户端代理。

于 2012-08-13T15:43:20.103 回答