Link to home
Start Free TrialLog in
Avatar of rckrch
rckrchFlag for United States of America

asked on

Visual Studio 2019 does not show report viewer as reference or in toolbox although it is installed.

I am using visual studio 2019; ASP.Net and VB.Net.  I am trying to open an older project (Web Site) that was developed on an earlier version of Visual Studio (2010).  I have several projects on this and they work.  However, I am trying to use this older version project in this VS 2019 environment and it contains Report Viewer.

Although the Report Viewer has been installed I cannot see the reference for it and I can't see it in the Toolbox nor is it available I the choose items list.

When loading the old folder into the vs environment I get errors - Could not load file and assembly 'Microsoft.ReportViewer.WebForms, Version:15.0.0....

How can I get this to work.  Below is my web config code snippet and you can see the report viewer is installed.

<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=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    </handlers>
  
    <httpHandlers>
      
      <add verb="*" path="Reserved.ReportViewerWebControl.axd" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    </httpHandlers>
    <compilation debug="true" strict="false" explicit="true" targetFramework="4.0">
      <assemblies>
        <add assembly="Microsoft.ReportViewer.WebForms, Version=15.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
        <add assembly="Microsoft.ReportViewer.Common, Version=15.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
        </assemblies>
      <buildProviders>
        <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=15.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
      </buildProviders>
    </compilation>

Open in new window

Capture-ReportViewerDownload.PNG
Avatar of Scott McDaniel (EE MVE )
Scott McDaniel (EE MVE )
Flag of United States of America image

Avatar of rckrch

ASKER

It is already installed and works on another project.  Just not on this one.

Avatar of rckrch

ASKER

Thanks Scott for your comment.


If I uninstall it will that impact the project in which it is working already?  As I mentioned, it works on one of my solutions, but not on another.


I am thoroughly confused about how this is supposed to work.

I would, but you could reinstall it.


Your older project may also contain references to an older version. If so, you'd have to update those references in the old project to the new reference numbers.

Avatar of rckrch

ASKER

I am not sure how to do that.  Can you help me with this?  I have tried and it did not work - so I am obviously doing something wrong.

Open the project, and then open the My Project Window, then click References. Do you see anything that is marked as <missing>, or anything like that? 


Better yet, take a screenshot of your References and post them here.

Avatar of rckrch

ASKER

I don't have a My Project Window.

Avatar of rckrch

ASKER

I don't have anything that says something in missing in the references.  Don't know if I am looking at the correct list.

User generated image

I'm referring to this screen:


User generated image


If one is missing, it'll not show the Path

Avatar of rckrch

ASKER

At the risk of sounding like an idiot, I have not idea what this screen is or how to get there.

ASKER CERTIFIED SOLUTION
Avatar of Scott McDaniel (EE MVE )
Scott McDaniel (EE MVE )
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rckrch

ASKER

Thanks Scott.  I don't have a 'MyProject' in solution explorer.  I did resolve the problem last night however.  I simply copied the reference files from the repos folder from the project that was working to the project that was not working and changed the PublicKeyToken.  


The web site works now.  If or when I have further problem I will post another question.


Thanks for the help.  I will select your last as the answer.