[英]Timeout issue with Report server. Automatically refreshing Report Manager URL
我在使用報表服務器時遇到問題。 打開報告管理器網址需要花費很長時間。 因此,報表服務器上發生超時問題。
自動啟動報表管理器URL的最佳方法是什么?
我最初的做法是使用PowerShell腳本和Task Scheduler,它們會每周自動運行該腳本。
但是,我找不到可以執行此操作的PowerShell腳本。 有任何想法嗎?
嘗試更改asp.net項目的web.config
<system.web>
<sessionState mode="InProc" cookieless="false" timeout="9999"/>
</system.web>
這可能有助於代替powershell腳本,並且還實現了一個可能每5秒調用一次的處理程序腳本
像使用jquery
public class SesstionHandler : IHttpHandler,IRequiresSessionState {
public void ProcessRequest (HttpContext context) {
context.Session["KeepSessionAlive"] = DateTime.Now;
}
public bool IsReusable {
get {
return false;
}
}
}
並在頁面級別添加此jQuery
$(function () {
setInterval(KeepSessionAlive, 60000);
});
var i = 0;
function KeepSessionAlive() {
i = i + 1;
$.post( "SesstionHandler.ashx" , null, function () {
.. some code here if needed
});
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.