簡體   English   中英

使用Internet Explorer在iFrame中加載ASP.NET報表時出現問題

[英]Problem loading ASP.NET report in iFrame with Internet Explorer

我已經看到有關此問題的多個帖子和網站,但是所發布的解決方案/解決方法均不適合我。 我正在嘗試將ASP.NET報告加載到iFrame中。 iFrame將正確加載(在所有瀏覽器中),但是當我運行報告時,Internet Explorer僅會顯示以下錯誤:

ASP.NET會話已過期

我已嘗試使用HTML表單來發布信息並以iframe為目標,如此處的解決方法所示: http : //connect.microsoft.com/VisualStudio/feedback/details/561066/reportviewer-2010-iframe-internet-explorer

我還嘗試將以下內容添加到報表應用程序的web.config文件中:

<sessionState  
       mode="InProc"
       stateConnectionString="tcpip=127.0.0.1:42424"
       sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
       cookieless="false"  
       timeout="20"  
/> 

我還嘗試將服務器設置為使用InProc模式,但這仍然無效。 誰能提供他們可能知道的其他潛在解決方案?

謝謝!

啊,我明白了。

必須將“ c​​ookieless”參數設置為“ true”:

<sessionState  
       mode="InProc"
       stateConnectionString="tcpip=127.0.0.1:42424"
       sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes"
       cookieless="true"  
       timeout="120"  
   /> 

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM