Report Viewer 2008, 2005

M

Madison

Hi there,
I develop web application using reportviewer for VS2008 on 64-bit machine. I
can deploy to test server(64-bit) machine and it ran fine. But when move to
production server(64-bit). I got the message that say "Could not load file or
assembly 'Microsoft.ReportViewer.ProcessingObjectModel, Version=9.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies"
Then I download the redistributable 2008 from
http://www.microsoft.com/downloads/...46-61E5-4D9E-BB5F-416D75A1B9EF&displaylang=en
and try to install it, I got the message ask do I want to repair or remove
reportviewer 2005? I will need reportviewer 2005 for other web application.
Did Microsoft Report Viewer Redistributable 2008 replace 2005? Can I still
ran reportviewer for 2005? Can reportviewer 2005 and 2008 ran on the same
server? Any ideas. Thanks.
 
Z

Zhi-Qiang Ni[MSFT]

Hi Madison,

As your test server (64-bit) works well, I assume that you have changed the
.NET environment in IIS Application Pool's setting to 'Enable 32-bit'. So,
please make sure you build the production server and the test server with
the same environment.
You said that when you installed the redistributable 2008, there was a
message ask you to repair or remove the ReportViewer 2005. I think maybe
you download the different file, the 2005 version instead of the 2008
version. Because, the Report Viewer Redistributable 2008 can only repair or
remove the ReportViewer 2008 if it already exists. The same to version
2005.
In the other hand, that two versions can be installed on the same server,
as for which version the applications use, it is based on the web config
file. It the config file refer to version 9.0, then the application will
use ReportViewer 9.0.

--
Sincerely,

Zhi-Qiang Ni

Microsoft Online Support
 
Z

Zhi-Qiang Ni[MSFT]

Hi Madison,

Please check the version of the download Report Viewer Redistributable
again. Right click the exe file--> 'properties'--> 'Details' -->'Product
version'--> check whether the value is '9.0.XXXX'.

If you still get the same result, send the screenshot of the 'Message'
here to help me find the clue please .

--
Sincerely,

Zhi-Qiang Ni

Microsoft Online Support
 
M

Madison

Thank you for your reply.
I have to wait until my admin network come back from vacation to try out.
 
Joined
Sep 9, 2010
Messages
2
Reaction score
0
I have a similar problem. My app works fine when deployed to the test server with only the 2008 Report Viewer Redistributable installed. But on the production server, both the 2005 and 2008 Report Viewer Redistributable packages are installed, which should be fine. The web.config in my app that uses the 2008 Report Viewer reads: (leaving out irrelevant references)
<compilation debug="true">
<assemblies>
<add assembly="Microsoft.ReportViewer.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
</assemblies>
<buildProviders>
<remove extension=".rdlc"/>
<add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
</buildProviders>
</compilation>


So there should not be confusion as to which report viewer version to use, as I specify the 9.0 which is 2008. When the site is accessed on the production server with both 2005 and 2008 Report Viewer Redistributables, I get the error:
BC30560: 'ReportViewer' is ambiguous in the namespace 'Microsoft.Reporting.WebForms'.

Before I added the line <remove extension=".rdlc"/>, I was getting the error:
The entry '.rdlc' has already been added.

Been trying to solve this for weeks...what am I doing wrong? Thanks for any and all help!!!
 
Joined
Sep 9, 2010
Messages
2
Reaction score
0
The administrator of this server thinks the problem is that both the web.config in the other site which is accessing the 2005 viewer and my app which is accessing the 2008 viewer are using the same PublicKeyToken which by default is b03f5f7f11d50a3a. Can the different apps use the same token string or does my app need to use a different token? And how would I generate a new token?

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,708
Latest member
SherleneF1

Latest Threads

Top