Recently I have modified an *.asmx.cs class, commented the old methods
[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}
in order in order to replace them with the following methods
[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}
Putting a breakpoint at line
Organigramma response = WSGetOrganigramma(cid, cidMax, utenteConn, domain);
and pressing F10 the browser gives an HTTP 500 error.
Drilling the trouble with WCF TEST CLIT I obtained the following exception
System.Web.Services.Protocols.SoapException: Server was unable to process request. --->
System.MissingMethodException: Method not found: '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:line 475
Server stack trace:
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.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 WSOrganigrammaCruscottoSoap.GetOrganigramma(GetOrganigrammaRequest request)
at
WSOrganigrammaCruscottoSoapClient.WSOrganigrammaCruscottoSoap.GetOrganigramma(GetOrganigrammaRequest request)
I have already rebuilt the entire solution but nothing happens.