【问题标题】:Problem loading ASP.NET report in iFrame with Internet Explorer使用 Internet Explorer 在 iF​​rame 中加载 ASP.NET 报告时出现问题
【发布时间】:2010-08-22 18:34:00
【问题描述】:

我已经看到多个关于此问题的帖子和网站,但发布的解决方案/解决方法都没有对我有用。我正在尝试将 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 模式,但仍然没有任何作用。谁能提供他们可能知道的任何其他潜在解决方案?

谢谢!

【问题讨论】:

    标签: asp.net html internet-explorer iframe


    【解决方案1】:

    啊,我明白了。

    “cookieless”参数必须设置为“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"  
       /> 
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-05-04
      • 1970-01-01
      • 2012-12-21
      • 2011-08-31
      • 1970-01-01
      相关资源
      最近更新 更多