与输出参数无过载方法的xyz()取4个参数 [英] no overload for the method xyz() with out parameters take 4 arguments

查看:121
本文介绍了与输出参数无过载方法的xyz()取4个参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个像

 public void AbcXyz(string unm, string pass, out string status, out string Utype)
 {

 }

和我添加了这个Web服务的参考我的解决方案,创造了一个对象,这个Web服务并称为Web方法类似这样

and i have added the reference of this web service to my solution, created a object to this webservice and called the web method like this

 srv.AbcXyz(Uname, encryptPswd,out result, out Utype);

我在这里得到一个错误

Here i am getting an error

"No Overload for method 'AbcXyz' takes '4' arguments"

我真的明白DNT为什么我收到此错误。有人可以请帮我在这个问题上。

I really dnt understand why i am getting this error. can someone please help me in this issue..

问候,
vijayUV

Regards, vijayUV

推荐答案

让你更新你的网站引用?

Have you updated your web references?

您确定您所使用的最先进的最新版本?

Are you sure you're using the most up-to-date version?

什么智能感知显示当你开始输入srv.AbcXyz?

What does intellisense show when you start typing "srv.AbcXyz"?

编辑:

必须有你没有的东西更新。

There must be something you're not updating.


  1. 编译您的WS项目。

  1. Compile your WS project.

在您的WS测试调用罪魁祸首方法

In your WS test calling the culprit method

在消费项目中更新WebReferences。

In the consumer project update your WebReferences.

在该方法的引用文件浏览。检查是否有您所期望的签名。

In the references file browse for the method. Check whether it has the signature you expect.

此的应该的工作!我会等你的反馈

This ought to work! I'll wait for your feedback

这篇关于与输出参数无过载方法的xyz()取4个参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆