
Hi!:
I had an error, CLRInterop in Ax 2,009 calling a C# class.
Now, I don't have the issue in Ax.
But, in the C# class, I get this message calling the send method
(user, password and class with document).
public class Send { public String returnValue;
public String SendDocument(String _User, String _Password, DocumentoElectronico documentoElectronico) { System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls; AXV5ElectronicInvoice.WebService.Service service = new Service(); System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls; try { EnviarResponse enviarResponse = new EnviarResponse(); var responseCode = service.Enviar(_User, _Password, documentoElectronico); returnValue = responseCode.ToString(); return returnValue; } catch(Exception ex) { returnValue = ex.Message; return returnValue; } } }
What can be wrong?. The site only ask for user, password and class instance.
You mentioned the the type of the exception, but nothing more. Please tell us what the message says, what is the value of the StackTrace property, and if there is an InnerException, share its details too.
Trying to find a solution without knowing what error we got is close to impossible.