我正在尝试将报告服务集成到 C# 应用程序中,但是当我尝试编译它时,我遇到了一堆“已经包含”错误,就像这两个错误一样:
error CS0101: The namespace 'Microsoft.SqlServer.ReportingServices2005' already contains a definition for 'ListSecureMethodsCompletedEventHandler'
error CS0101: The namespace 'Microsoft.SqlServer.ReportingServices2005' already contains a definition for 'GetRenderResourceCompletedEventHandler'
它们都来自 ReportingServices2005.cs 文件,该文件是使用 wsdl 生成的,并且我包含在项目中。我在这里做错了什么?
我可能还应该提到我正在使用 ReportingService2010.cs 和 ReportExecution.cs。