Telerik 报告查看器搞砸了

发布于 2024-10-02 01:53:34 字数 612 浏览 0 评论 0原文

Telerik Report 搞砸了,就像 this

尝试了文章建议的修复,但徒劳无功..ie 添加了“preCondition”属性,但 we.config 说 preCondition="integratedMode" 属性未声明” ..我需要在哪里声明它以及如何声明它!?

在阅读论坛后,我在 web.config 中添加了这样的 xmlns 值:-

<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">

它仍然给出此错误:-

无法识别的属性“preCondition”请注意,属性名称是大小写的。 敏感。

- 好的,该修复适用于 IIS7..没注意到。.我的是 IIS 5..那么我现在如何修复 Telerik Report Viewer 的外观?

Telerik Report messed up like this

Tried this fix that the article suggests but in vain..ie added "preCondition" attribute but we.config says preCondition="integratedMode" Attribute is not declared"..Where do I need to declare it and how!??

I added xmlns value like this in web.config after reading a forum:-

<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">

It still is giving this error:-

Unrecognized attribute 'preCondition'. Note that attribute names are case-sensitive.

[EDIT]
ok that fix is for IIS7..didn't notice..mine is IIS 5..so how do I fix the appearance of Telerik Report Viewer now??

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

看海 2024-10-09 01:53:35

以防万一,请验证您在 web.config 上对 Telerik.ReportViewer.axd 的引用是否具有正确的“Version=xxxxx”。
我有时发现报告查看器会出现混乱,因为 web.config 引用的是旧版本。

样本:

....
....
<add name="Telerik.ReportViewer.axd_*" path="Telerik.ReportViewer.axd" verb="*" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=5.1.11.928, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" preCondition="integratedMode,runtimeVersionv2.0" />
</handlers>
...
...
  <add verb="*" path="Telerik.ReportViewer.axd" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=5.1.11.928, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" validate="true" />
</httpHandlers>

Just in case, verify that you have the right "Version=xxxxx" on the web.config reference to the Telerik.ReportViewer.axd.
I've seen sometimes the report viewer messed up becasue the web.config was referencing an older version.

sample:

....
....
<add name="Telerik.ReportViewer.axd_*" path="Telerik.ReportViewer.axd" verb="*" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=5.1.11.928, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" preCondition="integratedMode,runtimeVersionv2.0" />
</handlers>
...
...
  <add verb="*" path="Telerik.ReportViewer.axd" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=5.1.11.928, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" validate="true" />
</httpHandlers>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文