0
我正在創建Microsoft Report Viewer版本11,在本地很好地工作,但是當上傳到服務器時,我發現下面的錯誤。Microsoft Report Viewer版本11
報表查看器配置錯誤
報表查看器Web控制HTTP處理程序還沒有被登記在應用程序的web.config文件。添加到web.config文件的system.web/httpHandlers部分,或添加到Internet Information Services 7或更高版本的system.webServer/handlers部分。
這是我web.config`
<?xml version="1.0"?>
<system.web>
<httpHandlers>
<add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91"
validate="false" />
</httpHandlers>
<customErrors mode="Off"/>
<compilation targetFramework="4.0">
<assemblies>
<add assembly="Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91"/>
<add assembly="Microsoft.ReportViewer.Common, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845DCD8080CC91"/>
<add assembly="Microsoft.Build.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
</assemblies>
<buildProviders>
<add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91"/>
</buildProviders>
</compilation>
<pages controlRenderingCompatibilityVersion="4.0" clientIDMode="AutoID"/>
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<handlers>
<add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=11.0.0.0,
Culture=neutral, PublicKeyToken=89845DCD8080CC91" />
</handlers>
</system.webServer>
</configuration>
我等着你的幫助 謝謝 – 2014-10-07 21:53:46
我嘗試用10版,但得到了同樣的錯誤。 – 2014-10-09 21:45:43