Microsoft Reporting v.10 加载问题

发布于 2024-08-19 17:38:47 字数 342 浏览 10 评论 0原文

我试图在我的 vs studio 网站中引用 microsoft reporting v.10.0.0.0。由于某种原因,它无法实现这一点,因为它总是给我一个编译错误,表明它无法加载类型。

错误 2625 无法从程序集“Microsoft.ReportViewer.Common,Version=10.0.0.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a”加载类型“Microsoft.Reporting.RdlBuildProvider”,

我认为这可能是原因之一从 9.0.0.0 移动到 10.0.0.0,此后它不起作用。

有什么建议吗?

多谢!

I am trying to reference microsoft reporting v.10.0.0.0 in my vs studio web site. For some reason it can't achieve that as it is always giving me a compile error that it could not load the type.

Error 2625 Could not load type 'Microsoft.Reporting.RdlBuildProvider' from assembly 'Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

One thing that I think it might be a cause is that I had moved from 9.0.0.0 to 10.0.0.0 and after that it does not work.

Any suggestions?

Thanks a lot!

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

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

发布评论

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

评论(4

段念尘 2024-08-26 17:38:47

将所有引用从版本 8 或 9 替换为 10 后(在 webconfig 以及您的 asp.net 页面中。在 web.Config 文件中,您必须将以下行更改为

<compilation debug="true">
  <buildProviders>
    <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
  </buildProviders>
</compilation>

<compilation debug="true">
  <buildProviders>
    <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
  </buildProviders>
</compilation>

Update

您还必须将所有其他参考号从 9.0.0 更新为 10.0.0

After replacing all ofthe references from version 8 or 9 to 10 (in webconfig and also in your asp.net pages. In web.Config file you have to change the following line from

<compilation debug="true">
  <buildProviders>
    <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
  </buildProviders>
</compilation>

to

<compilation debug="true">
  <buildProviders>
    <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
  </buildProviders>
</compilation>

Update

You also have to update all of the other reference Number from 9.0.0 to 10.0.0

坚持沉默 2024-08-26 17:38:47

RdlBuildProvider 在版本 10 中已移至 Webforms,这在之前很常见

RdlBuildProvider has been moved to Webforms in version 10, which used to be in common earlier

小兔几 2024-08-26 17:38:47

添加此内容以提供完整的答案。

请注意,v8 和 v10 的密钥令牌相同。另外,正如 Madhu 所说,请注意 Microsoft.Reporting.RdlBuildProvider 已从 Common 移至 Webforms,如 buildProviders< 中所示/em> 部分。

<compilation debug="true" targetFramework="4.0">
  <assemblies>
    <add assembly="Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
    <add assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
    <add assembly="Microsoft.ReportViewer.ProcessingObjectModel, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
</assemblies>
  <buildProviders>
    <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.Webforms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
</buildProviders>

Adding this to provide a complete answer.

Notice that the key token is the same for v8 and v10. Also, as Madhu said, note that Microsoft.Reporting.RdlBuildProvider has been moved from Common to Webforms as shown in the buildProviders section.

<compilation debug="true" targetFramework="4.0">
  <assemblies>
    <add assembly="Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
    <add assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
    <add assembly="Microsoft.ReportViewer.ProcessingObjectModel, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
</assemblies>
  <buildProviders>
    <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.Webforms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
</buildProviders>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文