2012-01-11 67 views
-1

我得到一個錯誤,而在報告Viewer.The錯誤顯示SSRS報告(的.rdl)是這樣的..收到一個錯誤,同時顯示SSRS報告的ReportViewer

An error occurred during local report processing. 
    The definition of the report 'Main Report' is invalid. 
    The report definition is not valid. Details: The report definition has an invalid target   namespace 'http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition' which  cannot be upgraded... 

我在SSRS報告M個新的。 ..so Plz幫助我.........

回答

2

這似乎是一個格式版本問題。您能否直接在SSRS上正確查看報告(無控制)?

如果是這樣,這可能意味着您需要升級您的應用程序中的ReportViewerControl - VS 2010擁有控件的版本10。

如果不是,則可能意味着上傳到SSRS的RDL不是您服務器的正確版本。

編輯 你還沒有說你的應用程序是否是網頁或窗口 - 我認爲網絡。 可能發生的事情是,您是從VS2008升級項目的,並且仍然參考ReportViewer控件的V 2008?

檢查您的應用程序的web.config

<system.web><compilation><assemblies>

<add assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/> 
<add assembly="Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/> 

<system.web><compilation><buildProviders>

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

而且你需要確保你的Web項目具有的Microsoft.ReportViewer.Common V 10參考和Microsoft.ReportViewer.WebForms,並將其設置爲部署到您的bin目錄。

EDIT2

VS2010使用Ajax - 在一個ScriptManager到您的網頁ReportViewer控件前添加,或者只是粘貼以下:

<asp:ScriptManager ID="scmForReportViewer" runat="server"> 
</asp:ScriptManager> 
+0

是我創建於2010年....所以我應該怎麼做?因爲即時通訊新的SSRS報告,所以我不能得到一個錯誤... – Kartik 2012-01-11 09:42:50

+0

添加在Web.config中後,對不起,因爲你說上面即時獲取相同的錯誤...在本地報告處理過程中發生錯誤。 報告「主報告」的定義無效。 報告定義無效。詳細信息:報告定義具有無法升級的無效目標命名空間'http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition'。 – Kartik 2012-01-11 10:09:13

+0

你好,因爲你說我已經做了web.config中的所有變化,但現在我得到一個錯誤,像報表查看器Web控件需要Web窗體上的System.Web.UI.ScriptManager。 – Kartik 2012-01-11 10:23:20