Hi All,
I wonder if anyone could advise on the problem I am currently having.
I am trying to setup a MSTest which mimicks an Epicor call for MasterUpdate on SalesOrder.
When I run my test, I get the error message in the title of this topic.
My code is below:
using (var session = new Ice.Core.Session(
"<username>",
"<password>",
null,
Ice.Core.Session.LicenseType.Default,
@"C:\Epicor\ERP10.1.400.29Client\Client\Config\EpicorERPUAT2.sysconfig", false, "MESMUK"))
{
//Set up Tableset
SalesOrderSvcContract svcSalesOrder;
**** Problem Line *****
svcSalesOrder = Ice.Assemblies.ServiceRenderer.GetService<SalesOrderSvcContract>(Db);
*************************
Erp.Tablesets.SalesOrderTableset so = new Erp.Tablesets.SalesOrderTableset();
//so = svcSalesOrder.GetByID(OrderNum);
//Set Up function variables
bool lCheckForOrderChangedMsg = true;
bool lcheckForResponse = true;
string cTableName = "OrderRel";
int iCustNum = so.OrderHed[0].CustNum;
int iOrderNum = so.OrderHed[0].OrderNum;
bool lweLicensed = true;
bool lContinue = false;
string cResponseMsg = "";
string cCreditShipAction = "";
string cDisplayMsg = "";
string cCompliantMsg = "";
string cResponseMsgOrdRel = "";
result = jo.ProcessJobActions(ref lCheckForOrderChangedMsg, ref lcheckForResponse, ref cTableName, ref iCustNum, ref iOrderNum, ref lweLicensed,
ref lContinue, ref cResponseMsg, ref cCreditShipAction, ref cDisplayMsg, ref cCompliantMsg, ref cResponseMsgOrdRel, so);
}
I have checked all my references and I beleive to have them all.
Any ideas on what I can further check, or if anyone else has come across this problem and found the root?
Kind Regards,
Dan