none
Web.config being updated outwith source when using ReportViewer v9 in VS2010 MVC App RRS feed

  • Question

  • Hi, I am trying to use SQL Server 2008 R2 reportingservices within an MVC web application in VisualStudio10>
    There are issues with the ReportView Control v10, so I am testing using version 9 instead.

    I have removed the version10 control from my toolbox in VS and replaced it with version 9.  I also removed any references to v10 from my solution and added a reference to v9.

    I have the application at a stage where the report will run, but everytime I go into the design screen of the aspx page which holds my reportviewer control, I get a message from VS stating that the web.config has been modified outwith the source editor, do I want to reload.  I can change the web.config back to the correct version and run without problems, but this is becoming a nusiance.  Can someone please point me in the right direction of what might be causing this?

    My aspx page looks like:
    <%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>"%>
    <%@ Register Assembly ="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns=http://www.w3.org/1999/xhtml>
    <head runat ="server">
    <title>Reports</title >
    </head>
    <body>
    <form id="form1" runat="server">
    <div>
    <asp:ScriptManager ID="ScriptManager1" runat="server" ScriptMode ="Release">
    </asp:ScriptManager>
    <rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana" Font-Size="8pt" InteractiveDeviceInfos="(Collection)" ProcessingMode="Remote" WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt" Width ="729px">
    <ServerReport ReportPath="/TestRep" ReportServerUrl=http://myserver:8080/reportserver/>
    </rsweb:ReportViewer> 
    </div>
    </form>
    </body>
    </html>
    
    


    My web.config looks similar to:

    <system.web>
      <httpHandlers>
       <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
        validate="false" />
      </httpHandlers>
      <compilation debug="true" targetFramework="4.0">
       <assemblies>
        <add assembly="System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        <add assembly="System.Web.Routing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        <add assembly="System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
        <!--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" />
        <add assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
       </assemblies>
       <buildProviders>
        <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
       </buildProviders>
      </compilation>
     </system.web>
     <system.webServer>
      <validation validateIntegratedModeConfiguration="false" />
      <modules runAllManagedModulesForAllRequests="true" />
      <handlers>
       <add name="ReportViewerWebControlHandler" preCondition="integratedMode" verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
      </handlers>
     </system.webServer>
     <runtime>
      <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
       <dependentAssembly>
        <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0" newVersion="2.0.0.0" />
       </dependentAssembly>
       <dependentAssembly>
        <assemblyIdentity name="System.Data.SqlServerCe" publicKeyToken="89845dcd8080cc91" culture="neutral" />
        <bindingRedirect oldVersion="4.0.0.0-4.0.0.1" newVersion="4.0.0.1" />
       </dependentAssembly>
       <dependentAssembly>
        <assemblyIdentity name="Microsoft.ReportViewer.WebForms" publicKeyToken="b03f5f7f11d50a3a" />
        <bindingRedirect oldVersion="10.0.0.0" newVersion="9.0.0.0" />
       </dependentAssembly>
      </assemblyBinding>
     </runtime>
    
    </configuration>
    

     

    The <System.web><HttpHandlers> and <system.WebServer><handlers> are the two sections which keep changing from v9.0.0.0 to v10.0.0.0.  Any assistance is greatly appreciated.

    Wednesday, August 17, 2011 1:10 PM