I created a COM DLL in C # VS2010 to be distributed with another application in Delphi.
This DLL only consumes in WEB Services.
On the machine where the DLL was built, there is no error. But in the distribution when the DLL methods are executed the message is returned:
The system can not find the file specified.
Is this a configuration that should be performed in the DLL configuration?
DLL code
public string RecepcionarLoteRps(string AEnderecoWebService, string AXmlEntrada)
{
string Retorno = string.Empty;
try
{
ServiceReferenceAbrasfV201.nfseClient wsClient = new ServiceReferenceAbrasfV201.nfseClient("nfseSOAP1", AXmlEntrada);
Retorno = wsClient.RecepcionarLoteRps(Cabecalho(), AXmlEntrada);
}
catch (Exception e)
{
Retorno = e.Message;
}
return Retorno;
}
Code in Delphi to send parameters to dll.
var
LClientWBAws: IAbrasfV201_Interface;
LRetorno: string;
begin
LClientWBAws := CoAbrasfV201.Create;
if (Pos('ConsultarLoteRpsEnvio', LEnviaArqXml) > 0) then
begin
LRetorno := LClientWBAws.Getnfse(ALayout.Parametros['EnderecoWebService'], LEnviaArqXml);
end
else if (Pos('CancelarNfseEnvio', LEnviaArqXml) > 0) then
begin
LRetorno := LClientWBAws.CancelarNfse(ALayout.Parametros['EnderecoWebService'], LEnviaArqXml);
end
else
begin
LRetorno := LClientWBAws.RecepcionarLoteRps(ALayout.Parametros['EnderecoWebService'], LEnviaArqXml);
end;
end;