SpriteHand
Module Border
  Deploying ReportViewer Control
Module Border
Location: BlogsAndy's Blog    
Posted by: host 5/19/2006 4:07 PM

So you've created a cool new WindowsForms Smart Client Application that uses the ReportViewer control, and it's time to deploy it. There is an article here that explains how to use the ReportViewer.exe redistributable.

But what if you don't want to distribute that funky ReportViewer.exe? Maybe you just want to throw the files on a PC and let a prototype tester have at it?   

Sure, you can do that - first snag these two files from C:\Program Files\Microsoft Visual Studio 8\ReportViewer

Microsoft.ReportViewer.Common.dll
Microsoft.ReportViewer.WinForms.dll

And now the tricky part, you need to snag Microsoft.ReportViewer.ProcessingObjectModel.dll from the GAC. It will be located in a directory something like C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.ProcessingObjectModel\8.0.0.
0__b03f5f7f11d50a3a

...but remember, you'll need to use the Command Line to get at this file, because of the cool Explorer add-in for the GAC.

Put the three ReportViewer assemblies in your app's BIN folder and you should be good to go!

Permalink |  Trackback

Comments (8)   Add Comment
Re: Deploying ReportViewer Control    By Anonymous on 7/26/2006 11:31 AM
Though I can see the \GAC_MSIL\Microsoft.ReportViewer.ProcessingObjectModel directory I can not change to that directory from the command prompt. Any ideas? Thanks

Re: Deploying ReportViewer Control    By Anonymous on 7/26/2006 11:49 AM
What are you seeing when you cd to that directory? Try these specific steps:

(1) open a command prompt (select Start/Run and then enter "cmd" and press enter)

(2) type the following command and press enter:

cd C:\WINDOWS\assembly\GAC_MSIL\Microsoft.ReportViewer.ProcessingObjectModel

(3) type dir and press enter. you should see:

10/29/2005 05:36 PM 8.0.0.0__b03f5f7f11d50a3a

(4) type cd 8.0.0.0__b03f5f7f11d50a3a and press enter.

(5) type dir. You should see:
10/29/2005 05:36 PM 49,152 Microsoft.ReportViewer.ProcessingObjectMo
del.dll

(6) copy the file to your bin directory:
copy *.dll c:\MyProject\bin



Re: Deploying ReportViewer Control    By Anonymous on 7/26/2006 11:55 AM
I am uisng the command promt. I can "cd" down to the gac_msil but when i then try to CD to Microsoft.ReportViewer.ProcessingObjectModel as a directory I get the error "Invalid Directory".. by the way I can see the directory when using a dir \w but just can't CD to it. Thanks

Re: Deploying ReportViewer Control    By Anonymous on 7/26/2006 12:16 PM
hmmmm... could it be a security problem? Does your account have access to the folder? Maybe try as an administrator?

Re: Deploying ReportViewer Control    By Anonymous on 7/26/2006 12:23 PM
I have admin rights. The property box shows ReadOnly is green (not checked though) What is really odd is that the Web Server's GAC_MSIL has the item too but I still get the error. So I tried experimenting in the Windows Explorer and I noticed that from within Windows we can browse to the folder and choose File\Assembly\Copy but this copies the entire directory. When I placed the copy in my Local Bin the process created a sub directory "Assembliy" with the entire contents of the GAC_MSIL.
Thanks. I'm not sure how to add my name to your blog to replace Anonymous. Thanks
Bob Carretta

Re: Deploying ReportViewer Control    By Anonymous on 7/26/2006 1:23 PM
Ok My team mate was abel to drill down and grab the file so it is all working now.. I wouldn't have known to go down to the 8.0.0 etc directory witout your help. Thanks.

Re: Deploying ReportViewer Control    By Anonymous on 10/25/2006 3:43 AM
Does anyone know why MS has taken the route of requiring this install to be run? Our org doesn't install apps on client machines, they are run off the network, with an elaborate system to resolve references. It seems to work fine like this, with the assemblies on a share, but I'm wondering if we're asking for trouble by not doing it the way it is 'meant' to be done?

Re: Deploying ReportViewer Control    By Anonymous on 10/25/2006 6:06 AM
I think what your are losing by not running the install is that the assemblies are not placed in the GAC --- instead thy will be private assemblies. So when an update to the ReportViewer is available, you will need to update each of your applications on a user's machine separately instead of all in one place.


Title:
Comment:
Add Comment   Cancel 
Module Border Module Border
Module Border
  Blog_List
Module Border
Module Border Module Border
Module Border
  Subscribe
Module Border

RSS

Module Border Module Border
Module Border
  Diversions
Module Border

DESTROY ALL INVADERS
A scrolling shooter game where the objective is to destroy the invading UFO's flying over a neighborhood of your choosing. Imagery provided by Microsoft Virtual Earth. Created using Silverlight 2.
PLAY IT

INFO AND CODE



HOOK SHOT
This little basketball game was submitted as an entry to the TeamZoneSports Silverlight Contest. Created using Silverlight 2 and the Farseer Physics engine.
PLAY IT

INFO AND CODE



SORT THE FOOBARS
A game where you need to sort the good foobars from the bad ones. Created using Silverlight 2 and the Farseer Physics engine.
PLAY IT

MORE INFO



POLYGON PHYSICS DEMO
A demo showing polygon physics where the user draws physics objects with the mouse. Created using Silverlight 2 and the Farseer Physics engine.
PLAY IT

MORE INFO



SILVERLIGHT ROCKS!
Destroy the asteroids before they destroy your ship! Created using Silverlight 2.
PLAY IT

INFO AND CODE



FISH GAME
A simple game of harpoon-the-fish. Written using the AJAX Sprite Toolkit.
PLAY IT

INFO AND CODE

Module Border Module Border
Module Border
  Search_Blog
Module Border
Module Border Module Border
Module Border
  Blog_Archive
Module Border
Module Border Module Border
Copyright (c) 2008 andy.beaulieu.com - Login