Hello Sergio
Try this in your catch block
...
class Program
{
static void Main(string[] args)
{
UniSession us1 = null;
try
{
UniSubroutine uSub = us1.CreateUniSubroutine("TIMESUB", 3); // my subroutine has 2 properties
...
}
...
catch (Exception e)
{
if (us1 != null && us1.IsActive)
{
Console.WriteLine("Error ... " + e.Message);
Console.WriteLine("Last Errors ... " + us1.LastServerError);
UniObjects.CloseSession(us1);
us1 = null;
}
}
...
Error ... [Rocket U2][UODOTNET - UNICLIENT][ErrorCode=30106] Wrong number of arguments supplied to the subroutine
Last Errors ... In /usr/udthome/demo/CTLG/TIMESUB at line 1 Error, SUBROUTINE 'TIMESUB' has different number of arguments than its CALL statement.
------------------------------
Nik Kesic
LKQ
------------------------------
Original Message:
Sent: 04-10-2021 13:34
From: Sergio Perin
Subject: UniObjects for .NET
In the UniObjects for .NET Developer Guide version 3.171.3 the property LastServerError in UniObjects object is not present in the uodotnet.dll. The guide is wrong or the property is missing.
------------------------------
Sergio Perin
Engineer
Baseware Systems
------------------------------