关于Ucenter在IIS中有时出现“Access denied for agent changed”错误。
2009-02-06 11:21
656 查看
我使用IIS7安装了Ucenter1.5。使用了FastCgi方式运行。
在用.net开发相关应用,与UCenter整合。登录,注册,短消息发送,获取短消息都没有问题,但是就是不能直接进入UCenter提供的消息中心,一直提示“Access denied for agent changed”。
经过跟踪代码发现UCenter中model下的base.php的init_input里有一个对HTTP_USER_AGENT的判断。
这时候一定要检查UC_KEY,UC_APPID是否配置正确
UCenter要进去用户消息中心,首先要发一个请求到UCenter(第一次通讯),当UCenter返回地址后,在redirect到那个地址(第二次通讯)。
第一次通讯是从服务器端访问的UCenter,所以一定要注意传送当前客户浏览器的HTTP_USER_AGENT,否则在第二次通讯,也就是客户端浏览器访问消息中心时就会出现两次的HTTP_USER_AGENT不同,从而产生“Access denied for agent changed”错误。
在用.net开发相关应用,与UCenter整合。登录,注册,短消息发送,获取短消息都没有问题,但是就是不能直接进入UCenter提供的消息中心,一直提示“Access denied for agent changed”。
经过跟踪代码发现UCenter中model下的base.php的init_input里有一个对HTTP_USER_AGENT的判断。
这时候一定要检查UC_KEY,UC_APPID是否配置正确
UCenter要进去用户消息中心,首先要发一个请求到UCenter(第一次通讯),当UCenter返回地址后,在redirect到那个地址(第二次通讯)。
第一次通讯是从服务器端访问的UCenter,所以一定要注意传送当前客户浏览器的HTTP_USER_AGENT,否则在第二次通讯,也就是客户端浏览器访问消息中心时就会出现两次的HTTP_USER_AGENT不同,从而产生“Access denied for agent changed”错误。
相关文章推荐
- DISCUZ X2.5上传头像出现“Access denied for agent changed”解
- 与ucenter同步信息 报“Access denied for agent changed”
- 关于MySql登录出现错误代码 1045 Access denied for user 'root'@'localhost' (using password:YES)
- 解决Navicat for MySQL打开连接时出现错误提示1045 access denied for user 'root'@'localhost' (using password yes)的问题
- 关于PHP+Mysql1045 Access denied for user错误解决办法――你可能想不到的
- MySQL 出现 Access denied for user 'root'@'localhost' (using password: YES) 错误
- 关于testlink重启后出现“1045 - Access denied for user 'my_db '@'localhost' (using password: YES)”的问题解决办法
- JSP连接MySQL时出现--错误:Access denied for user 'root'@'localhost' (using password: YES)'解决方案
- 关于在使用spring出现类似java.sql.SQLException: Access denied for user 'XXX'@'localhost' (using password: YES)
- mysql出现1045 - Access denied for user 'root'@'localhost' (using password: YES)错误
- 调用properties数据源配置文件时出现 Access denied for user 'Administrator'@'localhost' (using password: YES) 错误
- sphinx在建立索引时出现ERROR: index 'xxx': sql_connect: Access denied for user 'xxx'@'localhost' 不能连接数据库的错误解决
- 关于远程访问mysql出现Access denied for user 'root'@'的解决方法
- 解决discuz论坛无法显示短消息及Access denied for agent changed
- jdbc 连接数据库出现 密码错误的问题(java.sql.SQLException: Access denied for user 'root'@'localhost' (using passwo)
- centos 下刚安装完MySQL就出现密码错误 Access denied for user 'root'
- Spring4.X使用c3p0加载配置文件连接数据库,出现的Access denied for user 'root'@'localhost' 错误!
- 关于mysql 的错误:Access denied for user 'root'@'101.81.76.97' (using password: YES)
- Discuz 6.1 點選短消息會出現以下訊息"Access denied for agent changed"
- 关于Access denied for user 'Administrator'@'localhost' (using password: YES)的错误