LastServerMsg Property
The LastServerMsg property allows you to read the last response you received from using the CheckSTSConnection method.
Syntax
Property LastServerMsg As String
Parameters
None
Return Values
This property returns a string that contains the response to the last AdminSTS method call.
Example
The following code snippet from STSMODSV.asp shows the LastServerMsg property in use, along with the AdminSTS method. You can find the entire Active Server Page (ASP) in the admin directory under the Microsoft Project Server virtual root.
function ValidateAdminAccess()
{
var sStsAdminProtocol = nAdminPortIsSslBool ? 'https' : 'http';
var sRemAdminCmd = '-targetserver ' + sStsAdminProtocol + '://' + sServerName + ':' + nServerAdminPort + '/fpadmdll.dll';
sRemAdminCmd += ' -o getproperty';
sRemAdminCmd += ' -p ' + nServerWebPort;
sRemAdminCmd += ' -pn HasCollabSupport';
try
{
var oAdmObj = null;
oAdmObj = Server.CreateObject("PjObjProv.PSStsAdm");
var nErr = oAdmObj.AdminSTS(sRemAdminCmd);
if (!nErr)
{
if (oAdmObj.LastServerMsg.search('Property "HasCollabSupport" is') == -1)
{
nErr = 1;
}
}
return ((nErr == 0) ? true : false);
}
catch(e)
{
return false;
}
}
See Also
AdminSTS Method
Applies To
IPSSTSAdm Interface
Additional Information
Object Link Provider Reference for Microsoft Project Server
Object Link Provider Concepts and Architecture