RTX开发反向登录错误 HRESULT:0xFFFFBA9E

来源:互联网 发布:淘宝在线客服兼职 编辑:程序博客网 时间:2024/05/21 02:51

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

原创粉丝点击