Deploy ReportViewer 10 in Visual Studio 2010 to production site

.Net, SQL Add comments

If you have developed a .Net 4 website in Visual Studio 10 that that uses a client reportviewer control, then you are likely to run into problems with running reportviewer on the production server. Here’s the steps to get it running:

  1. Install ReportViewer 10 on your production machine. Go to Microsoft Download Center and search for “Microsoft Report Viewer 2010”
    download and install to your production server
  2. publish website to production server
  3. on the development server go to
    [drive]:\Program Files\Microsoft Visual Studio 10.0\ReportViewer\
    and copy the following files to the “bin” folder of your live site:
    Microsoft.ReportViewer.Common.dll
    Microsoft.ReportViewer.WebForms.dll
  4. this is the tricky part, copying “Microsoft.ReportViewer.ProcessingObje
    ctModel.dll”
  5. on your production server open a Command Prompt window, then cd to [drive]:\Windows
  6. then dir /s Microsoft.ReportViewer.ProcessingObjectModel.dll to find the dll
  7. cd to assembly\gac_msil\microsoft.reportviewer.processingobjectmodel
    this path contained the 2 versions of the file:
    10.0.0.0__b03f5f7f11d50a3a
    9.0.0.0__b03f5f7f11d50a3a
    since I’m using VS2010, I need the version 10
  8. copy 10.0.0.0__b03f5f7f11d50a3a [drive]:\[path]\bin
  9. you will now see “Microsoft.ReportViewer.ProcessingObjectModel.dll” in your website’s bin folder, you’re good to go

Leave a Reply

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in