Skip to Content
0
Aug 10, 2023 at 08:14 PM

Why is connection string a path, not a string of digits

49 Views Last edit Aug 11, 2023 at 03:48 PM 8 rev

Hi Experts,

My connection code that worked months ago is suddenly not working after a code change & recompile

sConnectionString = System.Convert.ToString( Environment.GetCommandLineArgs().GetValue( 1 ) );
Utils.MsgLog("Connection string = " + sConnectionString);
// sConnectionString = "0030002C0030002C00530041005000420044005F00440061007400650076002C0050004C006F006D0056004900490056";

// connect to a running SBO Application
try
{
SboGuiApi.Connect(sConnectionString);

Back in February I was getting a different string of digits depending on who logged in

2/23/2023 10:29:17 AM(landerson) ==> Connection string = 302c2d31352c2d312c312c6752644d634b496c

2/23/2023 10:34:19 AM(PWolworth) ==> Connection string = 302c2d31362c2d312c312c69694a5e42486677

2/23/2023 10:36:37 AM(jputnam) ==> Connection string = 302c2d31362c2d312c312c695277636d6e725f

I just made a made a code change and am trying to install and run the latest code and now I'm getting 8/10/2023 1:51:05 PM(jputnam) ==> Connection string = C:\Program Files (x86)\SAP\SAP Business One\AddOns\INTEGRA\ISConfig|C:\Program Files (x86)\SAP\SAP Business One\AddOnInstallAPI.dll

which is obviously failing as the parameter for SboGuiApi.Connect. I'm compiled as 32-bit release and am running a 32-bit SAP client. I'm using SAP 9.2. Thank you for your help