RTX开发反向登录错误 HRESULT:0xFFFFBA9E
原来的代码
string strName = HttpContext.Current.Request.QueryString["user"];
string strSign = HttpContext.Current.Request.QueryString["sign"];
RTXSAPILib.IRTXSAPIRootObj RootObj = new RTXSAPILib.RTXSAPIRootObjClass();
RTXSAPILib.IRTXSAPIUserAuthObj2 AuthObj2 = (RTXSAPILib.IRTXSAPIUserAuthObj2)RootObj.UserAuthObj;
bool bOK = AuthObj2.SignatureAuth(strName, strSign);
if (bOK == true)
{
Response.Write("OA.html");
}
else
{
Response.Write("error.html");
}
总是报错 HRESULT:0xFFFFBA9E,后来发现rtx服务器跟oa服务器都不是同一个服务器
string strName = HttpContext.Current.Request.QueryString["user"];
string strSign = HttpContext.Current.Request.QueryString["sign"];
RTXSAPILib.IRTXSAPIRootObj RootObj = new RTXSAPILib.RTXSAPIRootObjClass();
RootObj.ServerIP = "1.1.1.1";
RootObj.ServerPort = 8006;
RTXSAPILib.IRTXSAPIUserAuthObj2 AuthObj2 = (RTXSAPILib.IRTXSAPIUserAuthObj2)RootObj.UserAuthObj;
bool bOK = AuthObj2.SignatureAuth(strName, strSign);
if (bOK == true)
{
Response.Write("OA.html");
}
else
{
Response.Write("error.html");
}
RootObj.ServerIP = "1.1.1.1";
RootObj.ServerPort = 8006;
加上rtx服务器的ip与端口 后,正常了
我的RTX web管理系统 http://blog.csdn.net/livelymoon/article/details/9794067