locked
ReportViewer 11.0 control in VS 2012 Express for Web RRS feed

  • Question

  • After installing ReportViewer 11 into GAC and adding references to WebForms and Common to project and adding ReportViewer to Toolbox, always getting error when dropping control onto form.  Is always dropping 10.0.0.0 version.

    Why is it using 10.0 instead of 11.0 and how do I solved this?

    Monday, January 20, 2014 4:48 PM

Answers

  • Still don't know why it drops a reference to 10.0.0.0 assembly on the aspx page, but after I edited the assembly to match that of the reference in the web.config file, it worked!  Just copy the public key and change version reference from 10 to 11
    Wednesday, January 22, 2014 7:09 PM

All replies

  • I am having a similar issue.  I download the Runtime version of 11.0 and run the install which goes without a hitch, but when I go to add the item in my toolbox for 11.0 I only see 9 and 10 available.  I have uninstalled and reinstalled a number of times and no folder for reportviewer appears in my Visual Studio 11.0 folder.
    Wednesday, January 22, 2014 6:35 PM
  • Still don't know why it drops a reference to 10.0.0.0 assembly on the aspx page, but after I edited the assembly to match that of the reference in the web.config file, it worked!  Just copy the public key and change version reference from 10 to 11
    Wednesday, January 22, 2014 7:09 PM
  • You altered the actual assembly or just the reference to it in the web.config?  I can alter the reference in the web.config, but I don't know how to alter the assembly in GAC.
    Wednesday, January 22, 2014 9:03 PM
  • The 11.0 assembly was already IN the GAC (after downloading and installing the ReportView runtime for VS2012), and if you hoover the mouse over the "ReportViewer" control, it too showed 11.0, and so did the web.config.  Inexplicably, when a ReportViewer control is dropped on a form the reference added to the aspx page is this:  <%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>, which results in an error in design view.  Since the control is already in the GAC (and in web.config), simply editing the reference at the top of the aspx source page by replacing the PublicKeyToken to the one that matches the key for the 11.0 ("89845dcd8080cc91") and change the version from 10 to 11 and BINGO.  Design error goes away and the whole thing works.
    • Proposed as answer by StMiller02 Wednesday, January 22, 2014 9:46 PM
    Wednesday, January 22, 2014 9:38 PM
  • Thanks Michael!
    Wednesday, January 22, 2014 9:46 PM