Hi I get this error: Could not load file or assembly 'Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies Line 34: <com. Sep 05, 2011 The file ‘microsoft.reportviewer.winforms version 9.0.0.0’ cannot be opened Error!! By sreekanth bandarla September 5, 2011. September 5, 2011. In this Blogpost, Actually I thought of showing few hidden gems in our our Fabulous SSMS standard Reports, but ran into one of the interesting issues when i was trying to open REPORTS from SSMS.
Microsoft.ReportViewer.WebForms, Version=9.0.0.0, Visual Studio 2010 typically uses version 10 of reportviewer. If you are connecting to SQL 2008, probably no reason not use version 10. Download Microsoft Report Viewer 2010 Redistributable for Windows to manage and view reports designed using Microsoft reporting technology.
-->The Report Viewer controls can be used to integrate Reporting Services RDL reports into WebForms and WinForms apps. For detailed information about recent updates see the changelog.
Add the Report Viewer control to a new web project
Create a new ASP.NET Empty Web Site or open an existing ASP.NET project.
You can use .NET Framework 4.6 or any newer version.
Install the Report Viewer control NuGet package via the NuGet package manager console.
Add a new .aspx page to the project and register the Report Viewer control assembly for use within the page.
Add a ScriptManagerControl to the page.
Add the Report Viewer control to the page. The snippet below can be updated to reference a report hosted on a remote report server.
The final page should look like the following.
Update an existing project to use the Report Viewer control
Make sure to update any assembly references to version 15.0.0.0, including the project's web.config and all .aspx pages that reference the viewer control.
Sample web.config changes
Sample .aspx
Add the Report Viewer control to a new Windows Forms project
Create a new Windows Forms Application or open an existing project.
You can use .NET Framework 4.6 or any newer version.
Install the Report Viewer control NuGet package via the NuGet package manager console.
Add a new control from code or add the control to the toolbox.
How to set 100% height on the Report Viewer control
If setting the height of the viewer control to 100% the parent element is required to have a defined height, or all ancestors are required to have percentage heights.
Set the height of all the ancestors to 100%
Install Microsoft Reportviewer Webforms 9.0.0.0 Windows 10
Set the parent's height attribute
For more information about viewport percentage lengths, see Viewport-percentage lengths.
Add the control to Visual Studio toolbar
The Report Viewer Control is now shipped as a NuGet package and no longer shows in the Visual Studio toolbox by default. You can add the control to the toolbox manually.
Install the NuGet package for either the WinForms or WebForms as mentioned above.
Remove the Report Viewer Control that is listed in the toolbox.
Right-click in anywhere in the toolbox and then select Choose Items....
On the .NET Framework Components, select Browse.
Select the Microsoft.ReportViewer.WinForms.dll or Microsoft.ReportViewer.WebForms.dll from the NuGet package you installed.
Note
The NuGet package will be installed in the solution directory of your project. The path to the dll will be similar to the following:
{Solution Directory}packagesMicrosoft.ReportingServices.ReportViewerControl.Winforms.{version}libnet40
or{Solution Directory}packagesMicrosoft.ReportingServices.ReportViewerControl.WebForms.{version}libnet40
.The new control should display within the toolbox. You can then move it to another tab within the toolbox if you wish.
Common issues
The viewer control is designed for modern browsers. The control may not work as expected if the browser renders the page using IE compatibility mode. Intranet sites may require a meta tag to override default browser behavior.
NuGet.org pages
Here are links to articles on the NuGet.org site about the WebForm and WinForm versions of the Report Viewer control:
- Microsoft.ReportingServices.ReportViewerControl.WebFormshttps://www.nuget.org/packages/Microsoft.ReportingServices.ReportViewerControl.WebForms/
- Microsoft.ReportingServices.ReportViewerControl.Winformshttps://www.nuget.org/packages/Microsoft.ReportingServices.ReportViewerControl.WinForms/
Forum feedback
Install Microsoft.reportviewer.webforms Version=11.0.0.0
Let the team know about issues on the Reporting Services forums.
See also
File Info | Description |
---|---|
File Size: | 8.3 MB |
File Modification Date/Time: | 2020:02:12 12:22:54+00:00 |
File Type: | Win32 DLL |
MIME Type: | application/octet-stream |
Machine Type: | Intel 386 or later, and compatibles |
Time Stamp: | 2012:08:25 00:25:24+00:00 |
PE Type: | PE32 |
Linker Version: | 8.0 |
Code Size: | 8683520 |
Initialized Data Size: | 8192 |
Uninitialized Data Size: | 0 |
Entry Point: | 0x84993e |
OS Version: | 4.0 |
Image Version: | 0.0 |
Subsystem Version: | 4.0 |
Subsystem: | Windows command line |
File Version Number: | 11.0.2809.27 |
Product Version Number: | 11.0.2809.27 |
File Flags Mask: | 0x003f |
File Flags: | (none) |
File OS: | Win32 |
Object File Type: | Dynamic link library |
File Subtype: | 0 |
Language Code: | Neutral |
Character Set: | Unicode |
Company Name: | Microsoft Corporation |
File Description: | Microsoft.ReportViewer.Common.dll |
File Version: | 11.0.2809.27 ((BI_O15_OfficeBox).120824-1703 ) |
Internal Name: | Microsoft.ReportViewer.Common.dll |
Legal Copyright: | Microsoft Corp. All rights reserved. |
Product Name: | Microsoft Report Viewer 2012 |
Product Version: | 11.0.2809.27 |
Comments: | Microsoft.ReportViewer.Common.dll |
Legal Trademarks: | Microsoft SQL Server is a registered trademark of Microsoft Corporation. |
✻ Portions of file data provided by Exiftool (Phil Harvey) distributed under the Perl Artistic License.