• Skip to main content
  • Skip to primary sidebar
  • Skip to footer
  • Home
  • Blog
  • Power Platform
    • Power Apps
    • Power Automate
    • Power BI
    • Power Virtual Agents
  • Dynamics 365
  • Azure
  • About Me
Joe Gill Logo

Joe Gill

Microsoft MVP - Power Platform Consultant

Home » .NET » Could not load file or assembly Microsoft.ReportViewer.WebForms

Could not load file or assembly Microsoft.ReportViewer.WebForms

3rd October 2012 by Joe Gill Leave a Comment

A colleague of mine got this error after deploying an application which uses the reporting services report viewer control.  By default when you add a reference to an assembly which resides in the GAC  it does not copy the dll to the local bin folder. So the application runs fine locally in debug mode however you then get this error when you deploy it to a server where the report viewer controls have  not been installed.

Could not load file or assembly Microsoft.ReportViewer.WebForms Joe Gill Dynamics 365 Consultant

The easiest thing to do is to the change the reference in Visual Studio so that Copy Local is set to true so that the assembly gets copied to the bin directory when you do a build.
 

If you just want to deploy the report viewer dll rather than rebuild and deploy just copy it from the  C:Windowsassembly directory to the deployed bin directory

Share This On Social:
  • Tweet
  • Could not load file or assembly Microsoft.ReportViewer.WebForms Joe Gill Dynamics 365 Consultant

Filed Under: .NET, SQL

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Popular Categories

  • Power Platform
    • Power Apps
    • Power Automate
    • Power Virtual Agents
  • Azure
    • Logic Apps
  • Dynamics 365
  • .NET
  • AI
  • SQL

More to See

Power Platform Requests – Base Request Capacity

17th December 2020 By Joe Gill

Power Automate Desktop

Power Automate Desktop – UI Flow

26th November 2020 By Joe Gill

extract table from pdf and write as csv file using Power Automate Desktop

Extract Tables from a PDF using Power Automate Desktop

23rd May 2022 By Joe Gill

Dataverse Anonymization

25th April 2022 By Joe Gill

Tweets

Footer

Joe Gill

Microsoft Business Applications MVP – Power Platform, Dynamics 365 and Azure.

An architect with over twenty years experience designing and developing technology solutions. Specializing in the Microsoft technology stack including Power Platform, Dynamics 365 and Azure. Microsoft MVP Profile

Connect on Social

Useful Links

  • Home
  • Blog
  • About Joe Gill
  • Power Platform
  • Dynamics 365
  • Azure

Featured Posts

Power Platform Requests – Base Request Capacity

Power Automate Desktop – UI Flow

Synapse Link for Dataverse – Metadata

Extract Tables from a PDF using Power Automate Desktop

Dataverse Anonymization

Dataverse Metadata in Synapse

© 2022 · Joe Gill