【问题标题】:Why would System.Xml.Serialization.XmlSerializer be undefined in a SSRS 2005 report?为什么在 SSRS 2005 报告中未定义 System.Xml.Serialization.XmlSerializer?
【发布时间】:2010-01-15 15:09:20
【问题描述】:

我正在尝试序列化一个数据结构并通过参数将其传递给另一个报表,这行代码:

Dim s As New System.Xml.Serialization.XmlSerializer(GetType(System.Collections.HashTable))

产生这个错误:

An error occurred during local report processing.
The definition of the report '/myReport' is invalid.
There is an error on line 22 of custom code: [BC30002] Type 'System.Xml.Serialization.XmlSerializer' is not defined.

我该如何解决这个问题?我已经能够在其他代码行中使用完全定义的 .NET 类,包括以下代码:

Dim outStream As New System.IO.StringWriter()

Private colorMapping As New System.Collections.Hashtable()

任何想法为什么这会失败?这是 SQL Server Reporting Services 2005。

【问题讨论】:

  • 我不熟悉报告服务,但我猜您需要在项目中添加对“System.Xml”的引用
  • 当然!谢谢 - 如果您将其创建为答案,我会接受。

标签: .net vb.net reporting-services reportingservices-2005


【解决方案1】:

所以你可以结束这个问题:

您需要在项目中添加对“System.Xml”的引用。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2010-10-30
    • 1970-01-01
    • 1970-01-01
    • 2011-01-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多