2012-08-22 23 views
0

我試圖在C#應用程序中集成報告服務,但是當我嘗試編譯它時,我收到了一堆'已經包含'的錯誤,只是像那些二:命名空間已經在wsdl生成的文件中包含了一個定義

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。

+1

如果您不使用ReportingServices2005端點,則可以從項目中排除該文件 – user1578107

回答

0

那麼,這很容易。這是我第一次在C#中使用ReportingServices,並且誤讀了文檔。我認爲ReportingService2005和2010都是必需的。排除ReportingService2005並改變一些事情一切正常。

相關問題