I am new to Dynamics GP so pardon me for details which doesn't make sense. I am trying to use eConnect dll version 18 on .NET Core 2.2.1 (Standard Library) but apparently I am facing weird issues internally when I call GetEntity method to retrieve the data. The same code works using .NET Framework.
My question is can we use eConnect dll with .NET standard library? Is .NET Framework the only choice for eConnect?
For your reference following are my findings/errors while testing this on .NET Core 2.2.1 .
1) eConnect.GP cannot load ConfigurationManager (fixed adding Nuget package but not sure why i needed to add one. Works fine with .NET framework)
2) eConnect.Gp cannot load Diagnostics.Tracing (fixed by adding Nuget package)
3) Object reference not set to instance of object on eConnectGP exception handler following is the stack trace. (Cannot fix this)
at Microsoft.Dynamics.GP.eConnect.EventLogHelper.AddExceptionHeader(String action, Object[] inputParameters, StringBuilder errorString)
at Microsoft.Dynamics.GP.eConnect.EventLogHelper.CreateEventLogEntry(Exception exception, String action, Object[] inputParameters)
at Microsoft.Dynamics.GP.eConnect.eConnectMethods.GetEntity(String connectionString, String sXML)
follwing is the eConnect XML that is passed to GetEntity method
<?xml version="1.0"?><eConnect xmlns:xsi="">www.w3.org/.../XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><RQeConnectOutType><eConnectProcessInfo xsi:nil="true" /><taRequesterTrxDisabler_Items xsi:nil="true" /><eConnectOut><DOCTYPE>Vendor</DOCTYPE><OUTPUTTYPE>2</OUTPUTTYPE><FORLIST>1</FORLIST></eConnectOut></RQeConnectOutType></eConnect>