最近我修改了一个* .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 TEST CLIT解决问题我获得了以下异常
System.Web.Services.Protocols.SoapException:服务器无法处理请求。 --->
System.MissingMethodException:找不到方法:'HP.Common.DomainUser
HP.Common.ADHelper.getADInformationsByCid(System.String,System.String)'。at HP.AJAXWebService.WSOrganigrammaCruscotto.WSGetOrganigramma(String cid,String cidMax,
String utenteConn,String domain)at HP.AJAXWebService.WSOrganigrammaCruscotto.GetOrganigramma(String cid,String cidMax,String
utenteConn,String domain)in d:\ VSS_Project \ WebServices \ HP_AJAXWebService \ WSOrganigrammaCruscotto.asmx.cs:第475行
服务器堆栈跟踪:
在System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime操作, ProxyRpc&安培; RPC) 在System.ServiceModel.Channels.ServiceChannel.Call(String action,Boolean oneway, ProxyOperationRuntime操作,Object [] ins,Object [] outs,TimeSpan timeout)
在System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall,ProxyOperationRuntime operation)
在System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
在[0]处重新抛出异常:
在System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg,IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData,Int32 type)
at WSOrganigrammaCruscottoSoap.GetOrganigramma(GetOrganigrammaRequest request)
在
WSOrganigrammaCruscottoSoapClient.WSOrganigrammaCruscottoSoap.GetOrganigramma(GetOrganigrammaRequest 请求)
我已经重建了整个解决方案但没有任何反应。