79722532

Date: 2025-08-01 12:55:56
Score: 1.5
Natty:
Report link

I was using MSSQL connection open in my vb6 file

    Dim cnn As ADODB.Connection
    Dim rst As ADODB.Recordset
    Set cnn = New ADODB.Connection
    cnn.Open strConn 'where the error was thrown as in my question

I migrated to aspx web site and

  1. set permission for the exe to everyone security add everyone with all permissions

  2. then I called Process.Start from C# aspx website as per this answer

    Process proc = new Process();
    proc.StartInfo.FileName = "SAP_to_MSSQL.exe";
    proc.WorkingDirectory = @"D:\exepath\";
    proc.StartInfo.UseShellExecute = true;
    proc.StartInfo.Verb = "runas";
    proc.Start();

and it runs fine from my IIS-hosted aspx web site. Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: user3103982