开发者

WCF Parameter not Passed

I call the following local WCF Client service.

var Key = 1000;
FormServiceClient formService = new FormServiceClient("WSHttpBinding_IFormService");

And I call

formService.GetCaseData(Key);

The Key value is not getting passed into the service via my asp.net application. If I used WCF Test Client then there is no problem working.

When I hit this step--> formService.GetCaseData(Key); The Key parameter has a value of 1000. Once I get to the Service side, it has a value of 0.

I noticed that if I call an method that returns a simple POCO class it works fine. I am trying to return an Entity Domain object. Could this be 开发者_StackOverflowthe problem?


I have experienced the same problem. Although I have not yet found a solution, anyone reading this may want to unclick 'show my code only'. If you do you may see a System.Runtime.Fx.Async.Thunk.UnhandledExceptionFrame(AsyncResult) or something similar. If this is the case, and you are using ASP.NET with .NET 4.0+ the problem is likely a synchornization conflict between WCF and ASP that occurs only in debugging, and only when passing data through interfaces. However I know of no solutions to this problem.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜