Robot cannot login the Application

Hello all,

I tried to have a RPA project for a application,
but if I login and handle prompt window by robot,
the following window will be shown, but I can login the application by manually

and please find the following error message:

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at ˜..(String )
at ‰..()
at TSD.ECUSKDNET.frmDangKyOnline.(Object , EventArgs )
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.9179 (WinRelRS6.050727-9100)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll

ECUS5VNACCS
Assembly Version: 1.0.0.0
Win32 Version: 2.0.0.0
CodeBase: file:///D:/VN%20ECUS%20Installation/ECUSDATA–CC/ecus5vnaccs.exe

System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.9149 (WinRelRS6.050727-9100)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.9176 (WinRelRS6.050727-9100)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.9149 (WinRelRS6.050727-9100)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.9149 (WinRelRS6.050727-9100)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll

Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.9149 (WinRelRS6.050727-9100)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll

System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.9176 (WinRelRS6.050727-9100)
CodeBase: file:///C:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll

{60d98508-353c-41f0-a709-ff426b73882b}
Assembly Version: 0.0.0.0
Win32 Version: 2.0.0.0
CodeBase: file:///D:/VN%20ECUS%20Installation/ECUSDATA–CC/ecus5vnaccs.exe

C1.Win.C1TrueDBGrid.2
Assembly Version: 2.0.20092.61165
Win32 Version: 2.0.20092.61165
CodeBase: file:///D:/VN%20ECUS%20Installation/ECUSDATA–CC/bin5/C1.Win.C1TrueDBGrid.2.DLL

LogErrorApi
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///D:/VN%20ECUS%20Installation/ECUSDATA–CC/bin5/LogErrorApi.DLL

System.Web.Services
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.9149 (WinRelRS6.050727-9100)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Web.Services/2.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll

System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.9153 (WinRelRS6.050727-9100)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

ECUS5VNACCS.XmlSerializers
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///D:/VN%20ECUS%20Installation/ECUSDATA–CC/bin5/ECUS5VNACCS.XmlSerializers.DLL

yvooks13
Assembly Version: 1.0.0.0
Win32 Version: 2.0.50727.9176 (WinRelRS6.050727-9100)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

System.Core
Assembly Version: 3.5.0.0
Win32 Version: 3.5.30729.9141 built by: WinRelRS6
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll

C1.Win.C1SuperTooltip.2
Assembly Version: 2.0.20092.67
Win32 Version: 2.0.20092.67
CodeBase: file:///D:/VN%20ECUS%20Installation/ECUSDATA–CC/bin5/C1.Win.C1SuperTooltip.2.DLL

ManagedDotNetHook
Assembly Version: 23.10.97.53968
Win32 Version: 23.10.97.53968
CodeBase: file:///C:/Users/rpastudio02.hk/.nuget/packages/UiPath/23.10.97.53968/build/UiPath/ManagedDotNetHook.dll

jp4zmpvg
Assembly Version: 1.0.0.0
Win32 Version: 2.0.50727.9176 (WinRelRS6.050727-9100)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

qtoi4h0_
Assembly Version: 1.0.0.0
Win32 Version: 2.0.50727.9176 (WinRelRS6.050727-9100)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

kazqm2i8
Assembly Version: 1.0.0.0
Win32 Version: 2.0.50727.9176 (WinRelRS6.050727-9100)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

svtsxa4a
Assembly Version: 1.0.0.0
Win32 Version: 2.0.50727.9176 (WinRelRS6.050727-9100)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

j17kite_
Assembly Version: 1.0.0.0
Win32 Version: 2.0.50727.9176 (WinRelRS6.050727-9100)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

C1.Win.C1Input.2
Assembly Version: 2.0.20092.33230
Win32 Version: 2.0.20092.33230
CodeBase: file:///D:/VN%20ECUS%20Installation/ECUSDATA–CC/bin5/C1.Win.C1Input.2.DLL

C1.Win.C1List.2
Assembly Version: 2.1.20092.156
Win32 Version: 2.1.20092.156
CodeBase: file:///D:/VN%20ECUS%20Installation/ECUSDATA–CC/bin5/C1.Win.C1List.2.DLL

Accessibility
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.9149 (WinRelRS6.050727-9100)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll

System.Design
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.9149 (WinRelRS6.050727-9100)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Design/2.0.0.0__b03f5f7f11d50a3a/System.Design.dll

System.ServiceModel
Assembly Version: 3.0.0.0
Win32 Version: 3.0.4506.9149 (WinRelRS6.030729-9100)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.ServiceModel/3.0.0.0__b77a5c561934e089/System.ServiceModel.dll

SMDiagnostics
Assembly Version: 3.0.0.0
Win32 Version: 3.0.4506.9149 (WinRelRS6.030729-9100)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/SMDiagnostics/3.0.0.0__b77a5c561934e089/SMDiagnostics.dll

System.Transactions
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.9149 (WinRelRS6.050727-9100)
CodeBase: file:///C:/Windows/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll

System.Web
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.9175 (WinRelRS6.050727-9100)
CodeBase: file:///C:/Windows/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll

System.IdentityModel
Assembly Version: 3.0.0.0
Win32 Version: 3.0.4506.9149 (WinRelRS6.030729-9100)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.IdentityModel/3.0.0.0__b77a5c561934e089/System.IdentityModel.dll

System.WorkflowServices
Assembly Version: 3.5.0.0
Win32 Version: 3.5.594.9141
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.WorkflowServices/3.5.0.0__31bf3856ad364e35/System.WorkflowServices.dll

System.ServiceModel.Web
Assembly Version: 3.5.0.0
Win32 Version: 3.5.594.9141
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.ServiceModel.Web/3.5.0.0__31bf3856ad364e35/System.ServiceModel.Web.dll

System.Runtime.Serialization
Assembly Version: 3.0.0.0
Win32 Version: 3.0.4506.9149 (WinRelRS6.030729-9100)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Serialization/3.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll

flzfcjzb
Assembly Version: 1.0.0.0
Win32 Version: 2.0.50727.9176 (WinRelRS6.050727-9100)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

System.Management
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.9149 (WinRelRS6.050727-9100)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Management/2.0.0.0__b03f5f7f11d50a3a/System.Management.dll

System.EnterpriseServices
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.9149 (WinRelRS6.050727-9100)
CodeBase: file:///C:/Windows/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll

Newtonsoft.Json
Assembly Version: 4.5.0.0
Win32 Version: 5.0.6.16206
CodeBase: file:///D:/VN%20ECUS%20Installation/ECUSDATA–CC/bin5/Newtonsoft.Json.DLL

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

@raymond.hm.wong

looks like some value is not set to login..can you show the steps and application window

cheers

Add Delay Between Actions:

  • Some controls may not be fully initialized when your bot tries to click or type.
  • Add a small Delay (e.g., 1–2 seconds) before clicking the Login button.

I have added delay between each activities. But still not work for both ui activites and send hotkey method

Try using “SendWindowMessages” or even default typing methods instead of “SimulateType”, which may bypass UI logic.

tried all typing method, both not worked :sleepy_face:

If manual login works fine but the bot login fails, it’s possible your automation is skipping some essential hidden logic (like events triggered on focus or typing). please share UiPath error and application login page screenshot

Actually there are no any exception in UiPath, after I type all the login information into the field and click login, it will prompt up a window, and robot will handle this window, then the application will prompt up the window what I shown in my posted.


@raymond.hm.wong,

As the Ui controls are less on the screen, can you try using Keyboard shortcuts like tab and enter to logic and traverse through one textbox to another.

I feel there is something in that application which is crashing when bot try to interact with it.

1 Like

Can you share workflow

BlankProcess.zip (169.4 KB)
here you go!

1 Like

I have tried for UI automation and use keyboard shortcuts, both not worked

thank you for share workflow

:white_check_mark: Solution:

  1. Run UiPath with Administrator Privileges
  • Ensure that both UiPath Studio and UiPath Robot are executed with “Run as Administrator” .
  • This ensures system-level access required by ECUS software to interact with network and web services.
  1. Configure System Proxy Settings for Robot
  • Open Command Prompt as administrator.
  • Set the same proxy that is configured for your user account using the following command:
netsh winhttp set proxy proxy-server="http=yourproxy:port;https=yourproxy:port"
  • Replace yourproxy:port with your actual proxy server and port.
  1. Manually Verify Proxy Access
  • Open a browser (preferably Internet Explorer or legacy Edge) and navigate to:
    http://ecus.vn/EcusService/WebService.asmx
  • If the page does not load, it confirms a proxy issue that needs to be resolved at the network level.
  1. Add Retry or Delay in Workflow
  • Add a small delay (5–10 seconds) before the login button is clicked in UiPath to ensure the application has time to initialize network requests before proceeding.