這是在推動我香蕉 - 我有一個網絡應用程序,現有報告在ReportViewer的第10版中顯示,沒有問題。我們正在擴展該網站,並且基於第二個本地業務對象(我們正在與NetSuite Web服務集成)創建一個新報告。頁面加載並請求傳回的數據 - 但是,當嘗試創建ReportViewer實例時,頁面會在生成的標記中引發異常: Microsoft JScript運行時錯誤:'Microsoft'未定義。如何解決VS 2010 ASP.Net ReportViewer HttpHandler註冊錯誤?
點擊繼續加載頁面錯誤文本:
The Report Viewer Web Control HTTP Handler has not been registered in the application's web.config file. Add <add verb="*" path="Reserved.ReportViewerWebControl.axd" type = "Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> to the system.web/httpHandlers section of the web.config file, or add <add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> to the system.webServer/handlers section for Internet Information Services 7 or later.
我跑這localhost通過VS ASP.Net運行時服務器。顯然,如果我的web配置不正確,第一個報告查看器無法加載報告,所以不能這樣做。
我沒有得到第二次報告成功加載一次,但許多後續嘗試都導致上述情況。我試過在新頁面上刪除報告,並在原始頁面中進行復制,指向其報告/數據源,並獲得相同的結果。莫名其妙!
對此有何更新? – user384080 2010-10-27 21:43:06
沒有我..... – MikeTWebb 2010-10-27 23:20:05