C# 命名空间已在wsdl生成的文件中包含定义

C# 命名空间已在wsdl生成的文件中包含定义,c#,reporting-services,wsdl,C#,Reporting Services,Wsdl,我试图将reporting services集成到一个C应用程序中,但当我试图编译它时,我得到了一堆“已包含”错误,就像这两个: error CS0101: The namespace 'Microsoft.SqlServer.ReportingServices2005' already contains a definition for 'ListSecureMethodsCompletedEventHandler' error CS0101: The namespace 'Microsoft

我试图将reporting services集成到一个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。

嗯,这很简单。这是我第一次在C语言中使用ReportingServices,我误读了文档。我认为ReportingService2005和2010都是必需的。排除ReportingService2005并更改一些内容后,一切正常。

如果不使用ReportingServices2005端点,则可以从项目中排除该文件