Handling WCF Proxy null return issue

▼魔方 西西 提交于 2019-11-28 12:43:52

You can try to use Trace Viewer to analyse WCF communications in more detail and find out more detail when errors are encountered.

Within the app.config (Client) and web.config (Server), you can add blocks. To enable tracing, simply add dignostics blocks and trace files will be generated in the specified location when the app is run. This should enable you to dig a little deeper with the problem.

Trace viewer can be found:

("C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\SvcTraceViewer.exe")

Info on trace viewer usage:

http://msdn.microsoft.com/en-us/library/aa751795.aspx

Also, what type of method is it? does it return complex types or simple types?

ADDED: Ah, sorry about the mis-read, didn't realise you had no control of server side. I'd try to update the service reference/proxy (you've probably already done that) and check if anything has changed.

WCF doesn't make tracking down issues very easy i'm afraid. Is it possible to provide the method signatures for a call that works and one that doesn't so we can see what data types are being passed about?

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!