偶看管理的.NET网站经常出现无法访问的情况,提示
Server Application Unavailable
The web application you are attempting to access on this web server is currently unavailable. Please hit the “Refresh” button in your web browser to retry your request.
Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur.
通过搜索发现,是IIS6.0应用程序池的问题,在新建了一个应用程序池并且部署给.NET网站网站后,Server Application Unavailable的情况就没有出现,但是又出现了一个新的问题,管理后台无法正常登陆,在管理后台输入账号密码后,登陆界面只是刷新下,并没有登陆管理后台。
经过对应用程序池设置的排查,偶看把.NET网站的应用程序池中web园 最大工作进程数设置为100,将其修改为默认设置1,管理后台登陆恢复正常。
原因是session是保存在进程里面,所以,WEB园大于1时,有两进程,不能互相保证session,所以失败!
如果WEB园必须大于1,那么把session设置成保存在服务器,便能解决!
session设置成保存在服务器:ASP.NET配置设置—>状态管理—>会话状态设置 改为StateServer
路过,踩一下
哈哈,.NET我从来没接触过,也不打算学啊,dede我暂时不学了,先学joomla,哦哦
因为原来有个企业站是外面公司用.Net做的,所以才用到.Net。.Net太坑,偶看也没有研究。
点点网的火箭居然被你偷了。。
点点网?偶看是在一个JS源码站下载的。