Appserver error with .Net

pwhybrow

New Member
I have the below class which is almost connecting to my appserver. When this runs it is returning the following error:

Progress.Open4GL.Exceptions.RunTime4GLErrorException: ERROR condition: The Server application has returned an error. (7243) (7211)


There is nothing in either the broker or server log about this error. Any ideas?

*******.Net class ******

using System;
using System.Configuration;

using Progress.Open4GL;
using Progress.Open4GL.Proxy;
using Progress.Open4GL.DynamicAPI;

Connection myConn;

OpenAppObject oAPI ;

string strUrl = "AppServer://<server>:5162/<appserver>";
string strParam1 = string.Empty;
string strParam2 = string.Empty;
string strParam3 = string.Empty;
string strParam4 = string.Empty;

//Connect

myConn = new Connection(strUrl,"","","");

//myConn.SessionModel = 1;
oAPI = new OpenAppObject(myConn, "DotNet");

//Do a simple run with INPUT and OUTPUT param
ParamArray p = new ParamArray(4);

p.AddLongChar(0, strParam1, ParamArrayMode.INPUT);

p.AddLongChar(1, strParam2, ParamArrayMode.INPUT);

p.AddLongChar(2, strParam3, ParamArrayMode.INPUT);

p.AddLongChar(3, strParam4, ParamArrayMode.OUTPUT);

try
{
oAPI.RunProc("noddy.p",p);
}
catch (Progress.Open4GL.Exceptions.RunTime4GLException ex)
{

Console.WriteLine(ex.ToString());
Console.WriteLine(ex.ProcReturnString.ToString());

}
string strZ = string.Join("",p);

//Console.WriteLine(strZ);
Console.WriteLine("Hello, World!");

oAPI.Dispose();
 
Back
Top