none
Facing issues while upgrading reports from report viewer 2005 to report viewer 2010 RRS feed

  • Question

  • Hi

    I am working on a report application which is working fine on report viewer 2005. I have to upgrade this application to report viewer 2010 and to do this I:

    1. changed rdl file to point to RDL 2008 schema

    2. Changed all the occurences of version=8.0.0.0 to 10.0.0.0 for all the report viewer assemblies

    3. Added a new script manger control and report viewer control to my aspx form and this added entires for httphandler and assemblies in my web.config file.

    <configuration>
      <system.web>
        <httpHandlers>
          <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false"/>
        </httpHandlers>
        <compilation debug="true" targetFramework="4.0">
          <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"/>
            <add assembly="Microsoft.Build.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
            <add assembly="System.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
          </assemblies>
          <buildProviders>
            <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
          </buildProviders>
        </compilation>
         <authentication mode="Windows"/>
      </system.web>
      <system.webServer>
        <modules runAllManagedModulesForAllRequests="true" />
        <validation validateIntegratedModeConfiguration="false" />
        <handlers>
          <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" />
        </handlers>
      </system.webServer>

    Now when I am running reports, I am getting following errors in html response:

    1.  //<![CDATA[
      if (typeof(Sys) === 'undefined') throw new Error('ASP.NET Ajax client-side framework failed to load.');
    //]]>                                                                                                                               
    2. Report Viewer Configuration Error
      </h2><p>The Report Viewer Web Control HTTP Handler has not been registered in the application&#39;s web.config file.  Add &lt;add verb=&quot;*&quot; path=&quot;Reserved.ReportViewerWebControl.axd&quot; type = &quot;Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&quot; /&gt; to the system.web/httpHandlers section of the web.config file, or add &lt;add name=&quot;ReportViewerWebControlHandler&quot; preCondition=&quot;integratedMode&quot; verb=&quot;*&quot; path=&quot;Reserved.ReportViewerWebControl.axd&quot; type=&quot;Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&quot; /&gt; to the system.webServer/handlers section for Internet Information Services 7 or later.</p>                                                                                                                                                                                I have already installed report viewer 2010 redistributable. I have also installed ASP.NET AJAX 1.0 as I read somewhere that it can resolve the ajax related error. Can anyone please help me to resolve these errors? Is there anything else which is required for scriptmanager control ?                                                                                                                                       Thanks in advance!!!


    • Edited by vivek03 Tuesday, July 3, 2012 5:13 PM
    Tuesday, July 3, 2012 5:12 PM

All replies

  • Hi

    I am working on a report application which is working fine on report viewer 2005. I have to upgrade this application to report viewer 2010 and to do this I:

    1. changed rdl file to point to RDL 2008 schema

    2. Changed all the occurences of version=8.0.0.0 to 10.0.0.0 for all the report viewer assemblies

    3. Added a new script manger control and report viewer control to my aspx form and this added entires for httphandler and assemblies in my web.config file.

    <configuration>
      <system.web>
        <httpHandlers>
          <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false"/>
        </httpHandlers>
        <compilation debug="true" targetFramework="4.0">
          <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"/>
            <add assembly="Microsoft.Build.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
            <add assembly="System.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
          </assemblies>
          <buildProviders>
            <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
          </buildProviders>
        </compilation>
         <authentication mode="Windows"/>
      </system.web>
      <system.webServer>
        <modules runAllManagedModulesForAllRequests="true" />
        <validation validateIntegratedModeConfiguration="false" />
        <handlers>
          <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" />
        </handlers>
      </system.webServer>

    Now when I am running reports, I am getting following errors in html response:

    1.  //<![CDATA[
      if (typeof(Sys) === 'undefined') throw new Error('ASP.NET Ajax client-side framework failed to load.');
    //]]>                                                                                                                               
    2. Report Viewer Configuration Error
      </h2><p>The Report Viewer Web Control HTTP Handler has not been registered in the application&#39;s web.config file.  Add &lt;add verb=&quot;*&quot; path=&quot;Reserved.ReportViewerWebControl.axd&quot; type = &quot;Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&quot; /&gt; to the system.web/httpHandlers section of the web.config file, or add &lt;add name=&quot;ReportViewerWebControlHandler&quot; preCondition=&quot;integratedMode&quot; verb=&quot;*&quot; path=&quot;Reserved.ReportViewerWebControl.axd&quot; type=&quot;Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&quot; /&gt; to the system.webServer/handlers section for Internet Information Services 7 or later.</p>                                                                                                                                                                                I have already installed report viewer 2010 redistributable. I have also installed ASP.NET AJAX 1.0 as I read somewhere that it can resolve the ajax related error. Can anyone please help me to resolve these errors? Is there anything else which is required for scriptmanager control ?                                                                                                                                       Thanks in advance!!!


    just to few more things that I tried:

    in Vs2005's web.config file the buildproviders tag contains assembly "Microsoft.ReportViewer.Common" whereas VS2010's web.config file contains "Microsoft.ReportViewer.WebForms".... In the extract I mentioned above i manually changed it to "Microsoft.ReportViewer.Common" but didn't get any luck :(

    As I am not using IIS server in my application, I tried with removing <system.webserver> tag but that also threw that same error..

    Please provide me solution of this error if anyone has resolved this error..... :(

    Is there any limitation/new settings for ReportViewer 2010 that I should take care of ?
    • Edited by vivek03 Thursday, July 5, 2012 7:39 AM
    Thursday, July 5, 2012 6:48 AM
  • Hi

    I am working on a report application which is working fine on report viewer 2005. I have to upgrade this application to report viewer 2010 and to do this I:

    1. changed rdl file to point to RDL 2008 schema

    2. Changed all the occurences of version=8.0.0.0 to 10.0.0.0 for all the report viewer assemblies

    3. Added a new script manger control and report viewer control to my aspx form and this added entires for httphandler and assemblies in my web.config file.

    <configuration>
      <system.web>
        <httpHandlers>
          <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false"/>
        </httpHandlers>
        <compilation debug="true" targetFramework="4.0">
          <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"/>
            <add assembly="Microsoft.Build.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
            <add assembly="System.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
          </assemblies>
          <buildProviders>
            <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
          </buildProviders>
        </compilation>
         <authentication mode="Windows"/>
      </system.web>
      <system.webServer>
        <modules runAllManagedModulesForAllRequests="true" />
        <validation validateIntegratedModeConfiguration="false" />
        <handlers>
          <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" />
        </handlers>
      </system.webServer>

    Now when I am running reports, I am getting following errors in html response:

    1.  //<![CDATA[
      if (typeof(Sys) === 'undefined') throw new Error('ASP.NET Ajax client-side framework failed to load.');
    //]]>                                                                                                                               
    2. Report Viewer Configuration Error
      </h2><p>The Report Viewer Web Control HTTP Handler has not been registered in the application&#39;s web.config file.  Add &lt;add verb=&quot;*&quot; path=&quot;Reserved.ReportViewerWebControl.axd&quot; type = &quot;Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&quot; /&gt; to the system.web/httpHandlers section of the web.config file, or add &lt;add name=&quot;ReportViewerWebControlHandler&quot; preCondition=&quot;integratedMode&quot; verb=&quot;*&quot; path=&quot;Reserved.ReportViewerWebControl.axd&quot; type=&quot;Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a&quot; /&gt; to the system.webServer/handlers section for Internet Information Services 7 or later.</p>                                                                                                                                                                                I have already installed report viewer 2010 redistributable. I have also installed ASP.NET AJAX 1.0 as I read somewhere that it can resolve the ajax related error. Can anyone please help me to resolve these errors? Is there anything else which is required for scriptmanager control ?                                                                                                                                       Thanks in advance!!!


    just to few more things that I tried:

    in Vs2005's web.config file the buildproviders tag contains assembly "Microsoft.ReportViewer.Common" whereas VS2010's web.config file contains "Microsoft.ReportViewer.WebForms".... In the extract I mentioned above i manually changed it to "Microsoft.ReportViewer.Common" but didn't get any luck :(

    As I am not using IIS server in my application, I tried with removing <system.webserver> tag but that also threw that same error..

    Please provide me solution of this error if anyone has resolved this error..... :(

    Is there any limitation/new settings for ReportViewer 2010 that I should take care of ?

    Created a sample web application with reportviewer 2010 control which displays a report in html format. When I viewed the source of this html report, I found the same "The Report Viewer Web Control HTTP Handler has not been registered........" error. I was surprised to see my test app working with this error in the source...

    I assume this message is part of the reportviewer 2010 control :)

    Now coming back to my original problem:

    In my code I am searching for <IFrame> tag with ReportUrl property. After upgrading to ReportViewer 2010, I am not getting this <IFrame> tag in my response. I tried setting 'AsynRendering' property of reportviewer control to true & false but coulg get <IFrame> tag in my reponse....

    Could anyone please tell me if there is a way to get <IFrame> tag in Reportviewer 2010 response... I am using following Doctype in my apsx page

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    Thanks...

    Sunday, July 8, 2012 2:56 PM