I'm using a ReportViewer control in an .aspx page using ASP.NET 2.0 in Visual Studio 2005 Beta2. I want to deploy this ReportViewer control to my hosted site at WebHost4Life in "local" or "embedded" mode. My report runs fine on my development machine. But when I deploy it to my hosted website at WebHost4Life, I'm was getting this error.
Parser Error Message: Could not load file or assembly 'Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11 or one of its dependencies. The system cannot find the file specified.
I then searched my development machine and found these two files, which I then copied to the bin folder in my hosted website:
Microsoft.ReportViewer.Common.dll
Microsoft.ReportViewer.WebForms.dll
This seemed to have worked part-way, solved part of the problem, because now I get this error:
Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.ReportViewer.ProcessingObjectModel, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
Unfortunately, although I searched my entire development machine for the file Microsoft.ReportViewer.ProcessingObjectModel.dll, I could not find it anywhere.
Any thoughts will be appreciated.

Deploy web app with ReportViewer to hosted site embedded mode
Augustin Calin
Note that when VS 2005 is released a setup program for installing ReportViewer assemblies will be included, so this will be easier.
Mahoura
How do I get a copy of it
I'm running Visual Studio 2005 Beta2 installed on a new machine.
Thanks.
JVidal
Hi,
I had this same problem. I am using Godaddy. I also have VS 2005 PRO, so I don't know why it didn't add these assemblies to begin with. But anyway, I added these files to my BIN and it still didn't work. It said I didn't have the required permissions and failed while loading the reportviewer common dll. What would cause this
Luis Sá
I’d like to thank you for this recipe.
Really works !
Thanks
itosu
OK, tracking down those 3 files and including them finally worked, but then I received an error that the report was broken (I had the site as not updatable). I copied just full report to the server and overwrote the stub file. This then worked. Does anyone know why that is an issue and if so what can be done about it
Thanks,
John
rangermac
>> add in the .NET assebly reference to "Microsoft.ReportViewer.Webforms<<
Can you please give more specific information on how to include this reference
Thanks,
John
MatthewH
http://lab.msdn.microsoft.com/ProductFeedback/viewfeedback.aspx feedbackid=02a87aec-2c76-4123-80c7-8d603ae88cd5
Scott Fisher
Microsoft.ReportViewer.Common.dll
Microsoft.ReportViewer.WebForms.dll
Microsoft.ReportViewer.ProcessingObjectModel.dll
into the GAC of the server. Then I no longer needed to put the .dll's in the Bin folder.
Now everything is working great.
Maxim Aniskov
Hi,
If you run the ReportViewer.exe on the deployment server and restart IIS you can solve the problem.
ReportViewer.exe path : on the development machine ("C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages\ReportViewer\ReportViewer.exe")
Oya
AFM
There is another approach to take on this. You can create a Web deployment project, and then add in the .NET assebly reference to "Microsoft.ReportViewer.Webforms". Once you add this it will then add the detected dependencies of "Microsoft.ReportViewer.Common" and "Microsoft.ReportViewer.ProcessingObjectModel".
Once they are added then go into the properties of each and change the folder from "Web Application Folder" to "bin".
Build your project then run the setup on the web server and you are all set.
analog Tv
mcneil_eric
I finally got this working, thanks to the guys at WebHost4Life. Here's the summary of the solution:
I needed to get these 3 dll's into the bin folder of my hosted website:
Microsoft.ReportViewer.Common.dll
Microsoft.ReportViewer.WebForms.dll
Microsoft.ReportViewer.ProcessingObjectModel.dll
The first two .dll's were easy to copy from C:\WINDOWS\ASSEMBLY on my development machine, using WindowsExplorer. To copy the third .dll, it was necessary to use the Command Prompt to drill into C:\WINDOWS\ASSEMBLY\GAC_MSIL \MICROSOFT.REPORTVIEWER.PROCESSINGOBJECTMODEL, and then use the copy command to copy the .dll file.
For getting my test reporting Web Application to my hosted site at the WebHost4Life hosting service, I used the Visual Studio 2005 menu command Build/Publish, which compiles and uploads the app.
Next, I FTP'd the three .dll's into the Bin folder that was made automatically by the Build/Publish. (Do not put the 3 dll's into their own folder; put them directly into the Bin folder.)
Then, finally, I tested the app, and it works fine. This is a pure example of a Visual Studio 2005 Beta2 web application with SQL Server Reporting Services in Local Mode, that is, a web app with an "Embedded" report, running on a hosted website.
(By the way, the guys at WebHost4Life really went out of their way to help me solve this, took a real interest in it. Before I started using WebHost4Life about 2 years ago, I had tried about five other hosting services. At WebHost4Life, their immediate personal attention to this SQL Server Reporting Services application is another example of why WebHost4Life.com is so popular among ASP.NET developers, not to mention their very low prices.)
ado79229
I've tried using the GacUtil etc, but nothing is working for me. Is it still necessary to jump through all of these hoops - I'm using Visual Studio 2005 Pro (full version).
I'm not able to copy any of the dll's.
Does a simple straight forward approach exist for this problem
thanks,
Tom
Lovelina
Hi Tim,
I have done everything what u mentioned above. But still my appln is working after deployment.
The error i am getting is
I think my problem is not with dll's because i found all the three dlls in C:/windows/assembly folder of deployed server.
My application is working properly under development,but once i deploy it not working. Do u have any idea
With Regards,
Vijay Kumar