none
客户端调用WCF的方法出现此异常,求前辈们帮忙解决。。 RRS feed

  • 问题

  • 其他方法都能正常调用。唯独'GetddlistData_Cla();'               【方法返回string 无参数.. 】

    异常信息如下:

    System.ServiceModel.ActionNotSupportedException was unhandled by user code
      Message="The message with Action 'GetddlistData_Cla' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver.  Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Message, Transport, None)."
      Source="mscorlib"
      StackTrace:
        Server stack trace:
           at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)
           at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
           at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
           at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)
           at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
           at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
        Exception rethrown at [0]:
           at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
           at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
           at ServiceSupply.CustomerService.WebDBData.GetddlistData_Cla()
           at ServiceSupply.CustomerService.WebDBDataClient.GetddlistData_Cla() in f:\kay_vss_workspace\ax_web_0005\ax_web_portal.root\wintecec.root\wintecec\servicesupply\service references\customerservice\reference.cs:line 7145
           at VenderPortal.newVenderportal.ddlistDatabindcls() in F:\Kay_VSS_workspace\Ax_Web_0005\AX_Web_Portal.root\AX_Web_Portal\Ax_Web_0005_Vender Portal\newVenderportal.aspx.cs:line 198
           at VenderPortal.newVenderportal.Page_Load(Object sender, EventArgs e) in F:\Kay_VSS_workspace\Ax_Web_0005\AX_Web_Portal.root\AX_Web_Portal\Ax_Web_0005_Vender Portal\newVenderportal.aspx.cs:line 21
           at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
           at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
           at System.Web.UI.Control.OnLoad(EventArgs e)
           at System.Web.UI.Control.LoadRecursive()
           at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
      InnerException:

    2010年9月20日 3:12

答案

  • 3ks for ur reply...

    我是在服务器端写好方法..然后发布..在客户端把服务更新调用..

    我是接手别人的项目..别人原来写的方法 可以正常调用 我新添加的 就报上面所述异常..

     

    2010年9月26日 2:49

全部回复