• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3609
  • Last Modified:

Could not load file or assembly - 'Microsoft.ReportViewer

When I deploy my web app I get the following error on page load:

An error occurred during local report processing.
The definition of the report 'Main Report' is invalid.
An unexpected error occurred in Report Processing.
Could not load file or assembly 'Microsoft.ReportViewer.ProcessingObjectModel, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

I believe it has to do with the registering of dlls on the server because the app runs as expected in vs 2008 dev.

If i understand correctly, all i have to do is place the dlls in the BIN directory at the root of my app and asp.net will look there first [i am unable to register the dlls on the server - so i am attempting the BIN approach].

If I am correct that should be the end of it and my app should reference the dlls in the BIN directory without the dlls having to be registered on the server?

My web.config and some other possibly relevant code is listed below.

asp.net 2.0
windows server 2000
visual studio 2008
local .rdlc report created at root level of web app
website is configured as virtual directory on the 2000 server
iis 5

Thank you in advance for any assistance you can give.
<compilation debug="true" strict="false" explicit="true">
				<add assembly="System.DirectoryServices, Version=, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
				<add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.Common, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>

Open in new window

  • 4
  • 2
1 Solution
The DLLs are held in the global Assembly Cache (GAC)
That error suggests the correct version of report viewer is not installed.
In WinXP & server 2003 the GAC is here, C:\WINDOWS\assembly
Installing the correct report viewer on the server should fix this though.
jsvb1977Author Commented:
When I look at the server 2000 path, which is c:\winnt\assembly [i think], i see that report view version 8 is installed and registered with GAC.

Two things:

1. I have attempted to register the version 9 dll's without success. i just cant get it to register in GAC -- and a server reboot is out of the question at this point.

2. Should i attempt to reference version 8 of the dll's in my web app - which ARE registered with GAC?

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

You are using reportviewer control which comes with reporting services client tools. I guess you do not have the reporting client tools installed on the server. You need to have the reporting services runtime running on the server.
version 8 is from Report Viewer 2005, version 9 is from 2008.
Dont just try and register the DLL. Install the report viewer 2008 package. It can be downloaded from microsoft site if need be.

jsvb1977Author Commented:
I did not forget about this post -- I will install Report Viewer on the server in question as soon as I get the green light from our "Systems Team."

Once it is installed I will report back with the results.

Thank you for your patience.

No problem, I know how companies can sometimes be with their change control procedures.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now