Reputation: 3209
When I goto my site I get this error...
Error 101 Could not load file or assembly 'Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. C:\mlui\csharp\WebAdmin_solution\WebAdmin\web.config 209
which is this line of code:
<add assembly="Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
I am using Visual Studio 2012, do I need to download something and add it to the VS 2012 folder?
Upvotes: 9
Views: 74176
Reputation: 1
Just Search Microsoft report viewer in internet you will get exe file , install it, Issue will resolved
Upvotes: -1
Reputation: 6268
Right Click on the Project and open and go to Manage NuGet Package
Under browse tap search for Microsoft.Reporting.WebForms
select Microsoft.ReportView.Webforms
and click install.
Upvotes: 4
Reputation: 2013
Look at your folder instalation, what version have the folder ReportViewer. And put Version=X.0.0.0 where X means the version of your instalation.
In my case, I have
But only inside 10.0 I have the ReportViewer
And my web.xml is like this
<assemblies>
<add assembly="Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="Microsoft.ReportViewer.WinForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
</assemblies>
<buildProviders>
<add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
</buildProviders>
Upvotes: 3
Reputation: 5074
try to update it with latest assembly of version 10.0 by add reference to your project and build it again after adding assembly file will looks something like below
Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Upvotes: 2
Reputation: 56697
If you're actually using the Reporting Services, try to install the Reporting Services redistributable on the server you deploy your web site to or include the required assemblies with your web application.
Upvotes: 7