Microsoft Report Viewer is only displaying three fields, two of which are disabled. It should be displaying a large, fully functional report.
Microsoft Report Viewer只显示三个字段,其中两个是禁用的。它应该显示一个大型的、功能齐全的报告。
The sql server configuration has been vetted for by somebody who has done it many times and is running these same reports in a production environment. We've also scoured the web.config and haven't found anything out of place.
sql server配置已经经过多次测试,并且在生产环境中运行这些相同的报告。我们也搜遍了网络。配置并没有发现任何不合适的地方。
Here's an image of what the (broken) report looks like. The "End Date" and the "Stores" fields are disabled. Clicking View Report brings up the loading spinner, which then closes without changing anything or throwing errors.
下面是(损坏的)报告的图像。“结束日期”和“存储”字段被禁用。点击视图报告会弹出加载微调器,它会在不改变任何东西或抛出错误的情况下关闭。
We are seeing this problem on two different QA environments, one using old ASP.NET and one using ASP.NET MVC 4.
我们在两个不同的QA环境中看到这个问题,一个使用老的ASP。NET和一个使用ASP。净MVC 4。
Web.config highlights
网络。配置了
<sessionState mode="SQLServer" sqlConnectionString="Integrated Security=SSPI;Data Source=-------;" timeout="30" />
<compilation debug="true" targetFramework="4.0" >
<buildProviders>
<add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</buildProviders>
</compilation>
<pages enableViewState="true" clientIDMode="AutoID">
<controls>
<add tagPrefix="rsweb" namespace="Microsoft.Reporting.WebForms" assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</controls>
</pages>
<system.web>
<httpHandlers>
<add verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false" />
</httpHandlers>
</system.web>
<system.webServer>
<handlers>
<add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</handlers>
</system.webServer>
Here are the relevant parts of the web page:
以下是网页的相关部分:
<asp:ScriptManager ID='scriptManager' runat='server' AsyncPostBackTimeout="1800" EnablePartialRendering="false" />
<rsweb:ReportViewer ID="ReportViewer" runat="server" OnReportError="ReportError"
Font-Names="Verdana" Font-Size="8pt" Height="685px" ProcessingMode="Remote" Width="985px"
InternalBorderColor="White" InternalBorderWidth="0px" BackColor="White">
<ServerReport />
</rsweb:ReportViewer>
We are at a loss for ideas. Has anybody seen anything like this?
我们对思想一无所知。有人见过这样的东西吗?
3 个解决方案
#1
0
The report viewer control relies on postbacks which don't exist out of the box in an MVC app if you are using routing.
报告查看器控件依赖于在MVC应用程序中不存在的回发,如果您正在使用路由的话。
I also see you are using script manager why is that referenced if you are not using an UpdatePanel. Anyway, the timeout may be less than the report allows and you are seeing client timeouts or client disconnected errors.
我还看到了您正在使用脚本管理器,如果您没有使用UpdatePanel,那么为什么要引用它。无论如何,超时可能比报告所允许的要少,并且您正在看到客户端超时或客户端断开连接的错误。
#2
0
I also faced that same problem where i attached RS to my MVC Application and i got the solution (Web Browser Compatibility).
我也遇到了同样的问题,我在MVC应用程序中附加了RS,我得到了解决方案(Web浏览器兼容性)。
What i did is just, to add meta tag on my header portion of my form.
我所做的只是在我的表格的头部分添加meta标记。
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7;IE=EmulateIE8;"/>
Best Regards
致以最亲切的问候
#3
0
It turns out that the reports were misconfigured after all. Thanks for the responses, though!
事实证明,这些报告毕竟是错误配置的。谢谢你的回复!
#1
0
The report viewer control relies on postbacks which don't exist out of the box in an MVC app if you are using routing.
报告查看器控件依赖于在MVC应用程序中不存在的回发,如果您正在使用路由的话。
I also see you are using script manager why is that referenced if you are not using an UpdatePanel. Anyway, the timeout may be less than the report allows and you are seeing client timeouts or client disconnected errors.
我还看到了您正在使用脚本管理器,如果您没有使用UpdatePanel,那么为什么要引用它。无论如何,超时可能比报告所允许的要少,并且您正在看到客户端超时或客户端断开连接的错误。
#2
0
I also faced that same problem where i attached RS to my MVC Application and i got the solution (Web Browser Compatibility).
我也遇到了同样的问题,我在MVC应用程序中附加了RS,我得到了解决方案(Web浏览器兼容性)。
What i did is just, to add meta tag on my header portion of my form.
我所做的只是在我的表格的头部分添加meta标记。
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7;IE=EmulateIE8;"/>
Best Regards
致以最亲切的问候
#3
0
It turns out that the reports were misconfigured after all. Thanks for the responses, though!
事实证明,这些报告毕竟是错误配置的。谢谢你的回复!