Dear all,
Can someone help me on the how to I get Appserver URL 's username, password and appserverinfo? in the progress procedure we can get it by using:
cAppServerInfo = SESSION:NUMERIC-SEPARATOR +
SESSION:NUMERIC-DECIMAL-POINT +
SESSION
ATE-FORMAT + ",":U.
RUN "af/app/afdynuser.p":U PERSISTENT SET hDynUser.
cUserName = DYNAMIC-FUNCTION("generateUserName":U IN hDynUser).
cPassword = DYNAMIC-FUNCTION("createPassword":U IN hDynUser,
cUserName).
connString = '-H Servername -S 5162 -AppService asicfdb'.
CREATE SERVER hSrv .
l_connect = hSrv:CONNECT( connString, cUserName, cPassword, cAppServerInfo ).
but, how if I do it in .Net?
string txtURL = "AppServer://ServerName:5162/asbroker1";
m_conn = new Progress.Open4GL.Proxy.Connection(txtURL,"", "", "");
m_custorders = new CustOrdersProxy.CustOrders(m_conn);
after this statement it prompted me
SessionPool : NoAvailableSessions[Request failure: Server refused connection (7251) ]
Can someone help me on the how to I get Appserver URL 's username, password and appserverinfo? in the progress procedure we can get it by using:
cAppServerInfo = SESSION:NUMERIC-SEPARATOR +
SESSION:NUMERIC-DECIMAL-POINT +
SESSION
RUN "af/app/afdynuser.p":U PERSISTENT SET hDynUser.
cUserName = DYNAMIC-FUNCTION("generateUserName":U IN hDynUser).
cPassword = DYNAMIC-FUNCTION("createPassword":U IN hDynUser,
cUserName).
connString = '-H Servername -S 5162 -AppService asicfdb'.
CREATE SERVER hSrv .
l_connect = hSrv:CONNECT( connString, cUserName, cPassword, cAppServerInfo ).
but, how if I do it in .Net?
string txtURL = "AppServer://ServerName:5162/asbroker1";
m_conn = new Progress.Open4GL.Proxy.Connection(txtURL,"", "", "");
m_custorders = new CustOrdersProxy.CustOrders(m_conn);
after this statement it prompted me
SessionPool : NoAvailableSessions[Request failure: Server refused connection (7251) ]