Click here to Skip to main content
15,887,946 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi All,

My web application gets down. If I add following to my web.config:
XML
<add assembly="Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
        <add assembly="Microsoft.ReportViewer.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
        <add assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
        <add assembly="Microsoft.ReportViewer.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>


or
using Microsoft.Reporting.WebForms;


However I required reportviewer in my application to view and mail rdlc.

How add these reference to application?

Regards!
Aman
Posted
Updated 29-Jun-11 23:57pm
v3
Comments
Christian Graus 30-Jun-11 6:22am    
What does 'gets down' mean ? Is it depressed ? Do you get an error ?

1 solution

You are adding both versions 8 and 9 of the viewers, and they both have the same PublicKeyToken. Pick the correct version for the dotNet version your AppPool runs under and you should be fine.
You should add references like this through Visual Studio and not manually. If you do that, Studio will ensure that the correct version gets added and it will do the work for you.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900