Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/284.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# System.Web.Services.Protocols.SoapException:服务器无法处理请求---&燃气轮机;System.MissingMethodException:未找到方法:_C#_Asmx - Fatal编程技术网

C# System.Web.Services.Protocols.SoapException:服务器无法处理请求---&燃气轮机;System.MissingMethodException:未找到方法:

C# System.Web.Services.Protocols.SoapException:服务器无法处理请求---&燃气轮机;System.MissingMethodException:未找到方法:,c#,asmx,C#,Asmx,最近我修改了一个*.asmx.cs类,对旧方法进行了注释 [WebMethod] public Organigramma GetOrganigramma(string cid, string cidMax, string utenteConn) { Organigramma response = WSGetOrganigramma(cid, cidMax, utenteConn); return response; } private Organigramma WSGetOrg

最近我修改了一个*.asmx.cs类,对旧方法进行了注释

[WebMethod]
public Organigramma GetOrganigramma(string cid, string cidMax, string utenteConn)
{
    Organigramma response = WSGetOrganigramma(cid, cidMax, utenteConn);
    return response;
}

private Organigramma WSGetOrganigramma(string cid, string cidMax, string utenteConn){OldAction}
为了用以下方法替换它们

[WebMethod]
public Organigramma GetOrganigramma(string cid, string cidMax, string utenteConn, string domain)
{
    Organigramma response = WSGetOrganigramma(cid, cidMax, utenteConn, domain);
    return response;
}

private Organigramma WSGetOrganigramma(string cid, string cidMax, string utenteConn, domain){newAction}
在第行放置断点

Organigramma response = WSGetOrganigramma(cid, cidMax, utenteConn, domain);
按F10键,浏览器将显示HTTP 500错误

使用WCF测试CLIT I钻取故障,得到以下异常

System.Web.Services.Protocols.SoapException:服务器无法处理请求。-->
System.MissingMethodException:未找到方法:“HP.Common.DomainUser
HP.Common.ADHelper.getADInformationsByCid(System.String,System.String)“”

在HP.AJAXWebService.WSOrganigrammaCruscotto.WSGetOrganigramma(字符串cid,字符串cidMax,
字符串(字符串域)

在HP.AJAXWebService.wsOrgangRamAcrUscotto.GetOrgangGramma(字符串cid、String cidMax、String
UteneConn,字符串域)位于 d:\VSS\u Project\WebServices\HP\u AJAXWebService\WSOrganigrammaCruscotto.asmx.cs:第475行

服务器堆栈跟踪:

在System.ServiceModel.Channels.ServiceChannel.HandlerReply(ProxyOperationRuntime操作, ProxyRpc&rpc) 在System.ServiceModel.Channels.ServiceChannel.Call(字符串操作,布尔单向, ProxyOperationRuntime操作,对象[]输入,对象[]输出,时间跨度超时)

位于System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage方法调用,ProxyOperationRuntime操作)

位于System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage消息)

在[0]处重试异常:

at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg,IMessage retMsg)

at System.Runtime.Remoting.proxy.RealProxy.PrivateInvoke(MessageData&msgData,Int32类型)

在WSOrganigrammaCruscottoSoap.GetOrganigramma(GetOrganigrammaRequest请求)


WSOrganigrammaCruscottoSoapClient.WSOrganigrammaCruscottoSoap.GetOrganigramma(GetOrganigrammaRequest 请求)


我已经重建了整个解决方案,但什么也没发生。

ASMX不是WCF。它们是两种独立的技术,微软不再支持ASMX(已被WCF取代)。我已经相应地更正了您的标记。我想您的问题是GAC或其他地方有一个遗留的旧DLL。看,这基本上是同一个问题。重建解决方案时,您是否正在呼叫本地服务?或者它调用的是在另一台机器上运行的服务?好的,我认为这是一个挥之不去的旧DLL。不幸的是,我无法接触SourceSafe解决方案。我创建了一个带有main方法的特殊类来测试上述方法。又快又脏?当然可以,但没有时间:)