Keorapetsi Matseme

Keorapetsi Matseme

  • 1.4k
  • 305
  • 2.4k

Create a Sage300 accpac session

Mar 24 2021 4:48 PM
Hi,
 
I am creating a session on my .Net console app. The session is to connect to Sage 300 accpac.
 
However my session.Open methed catches an empty exception.
 
session.Open(dsDepotSettings.Tables[0].Rows[counterC]["ACCPACUSERNAME"].ToString(), dsDepotSettings.Tables[0].Rows[counterC]["ACCPACPASSWORD"].ToString(), dsDepotSettings.Tables[0].Rows[counterC]["CODE"].ToString(), System.DateTime.Now, 0);
 
Any Idea why the method catches an empty exeption?
 
Regards 
 

Answers (2)