0

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.

Jason Aller
  • 3,475
  • 28
  • 40
  • 37
LarAnto
  • 136
  • 1
  • 13
  • ASMX is **not** WCF. They are two separate technologies, and ASMX is no longer supported by Microsoft (having been replaced by WCF). I've corrected your tags accordingly. – Tim May 27 '14 at 08:58
  • 1
    I think you're problem is a lingering old DLL either in the GAC or *somewhere*. See http://stackoverflow.com/questions/8058832/system-missingmethodexception-method-not-found - it's basically the same issue. When you rebuild the solution, are you calling out to your service that is local? Or is it calling out to a service that you have running on another machine? – Prescott May 27 '14 at 09:13
  • OK, I think it is a lingering old DLL. Unfortunately I cannot touch the SourceSafe solution. I created an ad hoc class with a main method to test the method above. Quick-and-dirty? Sure but no time :) – LarAnto Jun 30 '14 at 10:15

0 Answers0