.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

ReportViewer not working in vs2010 framework4

Posted By:      Posted Date: September 07, 2010    Points: 0   Category :Sql Server
I cannot get my reports to work when combined with a master page. I have a webpage with a reportviewer that has always worked in VS2008 framework3.5.  However, When I rebuild this for vs2010 it looks like this: <%@ Page Title="" Language="VB" MasterPageFile="~/TopMenu.master" AutoEventWireup="false" CodeFile="TestControl2.aspx.vb" Inherits="TestControl2" %> <%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %> <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">     <asp:ScriptManager ID="ScriptManager1" runat="server">     </asp:ScriptManager>         <rsweb:ReportViewer ID="ReportViewer1" runat="server" CssClass="CornwallReports"             Height="475px" ProcessingMode="Remote" Width="900px">             <ServerReport ReportPath="/Cornwall/Reports/FindSales"      &

View Complete Post

More Related Resource Links

VS2010 XAML namespace intellisense not working

When I type in a namespace in XAML, I'm not getting any intellisense. For example: xmlns:local="" In VS2008 I would get a long intellisense list here. In VS2010 I get nothing. I have tried this on 2 different computers. What am I missing?

VS2010 Reportviewer - subreport - web server

Hi all,I have ASP.NET web application(vs 2010). I'm trying to use subreport with reportviewer. The report is working with my machine, it returns both the main and sub report. But when I deplyed to web server, the main report display, but not the subreport and no error indicate. I did something like this with VS2005 and deployed to web server without any problems. Here is my coding:Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load      Dim ReportViewer1 As New ReportViewer        Dim rptDataSourceMain As New ReportDataSource("dsSRC", GetDataSet("p_SRC_completed_main").Tables(0))        With ReportViewer1            .ProcessingMode = ProcessingMode.Local            .AsyncRendering = False            .LocalReport.ReportPath = "content\SRC.rdlc"            .LocalReport.DataSources.Clear()            .LocalReport.DataSources.Add(rptDataSourceMain)        End With        ' HANDLE the sub-report        AddHandler ReportViewer1.LocalReport.SubreportProcessing, AddressOf SetSubDataSource        ReportViewer1.LocalReport.Refresh

ReportViewer Print Button not working correctly with windows 7 clients

I need some help being pointed in the right direction to fix the following issue: - After building several reports using reportviewer and testing with windows XP clients everything seemed to be fine.  I noticed that the first time the client loaded the asp.net website and clicked the print button it asked permission to install a small file (I assume this is to allow the reportviewer to access the clients printers).   - The problem I have is on Windows 7 Clients.  They can view/export the reports with no problem, but when they click the print button it ask permission to install the small file, but a error is given during the install process and the file is not installed.   If anyone has a solution or can point me in the right direction it would be helpfull.  I am using Visual Studios 2008 on Windows XP PRO and the site is hosted on Windows Server 2003 R3   Thanks 

Ribbon for WPF not working well on VS2010

I have instaled Ribbon for WPF on Windows 7 and VS2010 but the ribbonwindow looks like this:     Can you help me?

Help - Serious ReportViewer Problem upon upgrade to VS2010

I upgraded from VS2008 to VS2010 and none of my reports work! First, I had to replace all the existing ReportViewer controls with new ones.  Then, when the page finally runs, it is stuck in a loop: I see the "Loading..." word and icon while the ReportViewer is loading, then a quick flash, and the page loads again! What's going on?  What am I missing that should obviously be changed to make these ReportViewers work?  These reports were designed in VS2005/2008, and have been in production for several years. Please help - I have a screaming client... (I know, we all do...)

CS0102 Error on ReportViewer reports using VS2010 Professional

I am trying to build reports using the ReportViewer feature in Visual Studio 2010 Professional and I am encountering the following error when I try to run the aspx page containing the report.Compiler Error Message: CS0102: The type 'SupApps_SecurityDataSet' already contains a definition for '_schemaSerializationMode'The error is stating the issue is on line 27 of the file but I dont see how to view the code on a rdc file in Visual Studio.HERE IS THE CODE FOR THE ASPX PAGE<%@ Page Language="VB" AutoEventWireup="false" CodeFile="QMDailyJournalReport.aspx.vb" Inherits="reports_QMDailyJournalReport" %> <%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server">     <title></title> </head> <body>     <form id="form1" runat="server">     <div>              <rsweb:ReportViewer I

ReportViewer inside UpdatePanel not working


Has anyone been able to get the ReportViewer to work correctly inside an UpdatePanel?

For me the report renders fine on the initial whole-page refresh, but when I click the next page button the next page renders but doesn't allow me to navigate through the pages anymore. The toolbar says "(blank) of 0" pages and the arrow toolbar buttons for navigating between pages are all disabled.

VS2010 has stopped working error adding new item to folders in MVC2



   I am using VS2010 Pro in 64 bit Windows 7. When I add a new item to a folder in an ASP.NET MVC2 project, VS frequently crashes with a "Visual Studio has stopped working" error and then closes down. If I re-open the project the item is not visible in the MVC project folder, (but it is visible to windows explorer although I think it's corrupted). If I then try to add the item again, it warns me that it already exists and asks to overwrite, choosing yes to overwrite usually works OK.  When adding an .edmx item it is more problematic, I can't overwrite it but because I know that there actually is a file in the folder, (although not visible and albeit corrupted), I can add it as an existing item and then choose "update model from database" to get it to work. This error is happening more and more frequently.

VS2010 ReportViewer with SQL 2005


Please forgive me for the simple question because I'm a newbie and I'm trying SQL Reporting service for the first time EVER.

The more I read online, the more I'm confused.  My setup is this.

VS2010 / SQL 2005 / IIS 6 / ASP.NET 4.0

I created my first report using SQL 2005 and it works great from the report server.

I'm trying to run this report in my aspx page using a reportviewer control.  As soon as I put a reportviewer control on my page, this gets generated in web.config but it's cuasing the below error.  All I did was put the control on the page.  I haven't even changed anything to the control yet.

Parser Error Message: Could not load file or assembly 'Microsoft.ReportViewer.WebForms, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

Source Error:

Line 85: 				<add assembly="Microsoft.Build.Framework, Version=, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
Line 86: 				<add assembly="System.Management, Version=, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>

ReportViewer on IIS 7 Windows 2008 not rendering, usual fix not working

I moved from Katmai and Windows 2003, to SQL 2008 RTM and Server 2008 with IIS 7. My ReportViewer based .Net application runs but reportviewer control icons do not display and the report does not render. Same reports render in ReportManager and Visual Studio. I tried this common fix which did not work:

  • Open Internet Information Services (IIS) Manager and select your Web application.
  • Under IIS area, double-click on Handler Mappings icon.
  • At the Action pane on your right, click on Add Managed Handler.
  • At the Add Managed Handler dialog, enter the following:
    Request path: Reserved.ReportViewerWebControl.axd
    Type: Microsoft.Reporting.WebForms.HttpHandler
    Name: Reserved-ReportViewerWebControl-axd
  • Click OK.

My Web.Config is below. Any insights appreciated.
<?xml version="1.0"?>

<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">

AsyncFileUpload - not working w master page in VS2010 B2


I'm using the AsyncFileUpload Extender inVS2010 Beta2. When I include the control in a page derived from a master - even a stripped down basic one does not work. The exact same setup works in a page not derived from a master.  The error I get when I attempt to upload any file is: Unhandled Exception: the attached file is invalid. I have simplified the entire project down to the default created automatically with the AsyncFileUpload control added:

Default.aspx content:

<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="UploadTest._Default" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">

ReportViewer webpart is not working after SharePoint 2010 upgrade


After upgrading to SharePoint 2010 and Reporting Services 2008 (separate servers), all our web part pages that have the ReportViewer web parts in them are not working.  The error we are getting is "Web Part Error: A Web Part or Web Form Control on this Page cannot be displayed or imported. The type could not be found or it is not registered as safe."  All the reports are working on the report server but not through the web parts.  We used Visual Studio 2005 to create these reports and they all work in MOSS 2007 that also ran Reporting Services 2005.  If we delete the web part with the error and put in the ReportViewer web part manually on the page in SharePoint 2010, the reports do work.  But there are too many reports to be doing this manually for every web part page.  We already tried making changes to the Handler Mappings but it did not resolve the errors.  As far as we can tell, all the DLLs are in the right places.  Any help or suggestions would be greatly appreciated.  Thanks.

reportviewer date parameter and calendar.. not working and javascript errors??



Hi, I've got this ssrs 2005 report that works great passing a few
security related parameters from asp.net codebehind. However, there
are two date related parameters that won't be coming from my web form,
but rather from the report form itself. When I test the report's date
parameters from visual studio it work fine, but when I attempt the
same report from a reportviewer no matter what input I place on the
report's date fields or even if I select the date picker, the report
simply resets to default and reloads. And actually the date picker
from the reportviewer does not not even pop up.


Here's my aspx code:

<%@ Page Language="VB" AutoEventWireup="false"
Inherits="_ReportViewer" MasterPageFile="~/Main/MasterPage.master"
    CodeFile="~/Reports/CashSales.aspx.vb"  Title="Cash Sales" %>

<%@ Register Assembly="Microsoft.ReportViewer.WebForms,
Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Content1"

WSE with VS2010+Framework4.0 possible on client side?



I was provided a soap service programmed using WSE 3.0. I would like to program it on client side. Is it possible with VS 2010+ F 4.0

I think I need to import namespace called Microsoft.Web.Services2.Security.Tokens by installing Web Services Enhancements 2.0 Service Pack 2

ReportViewer localization in VS2010


Hi All,

We are building a website in ASP.NET 4 with VS2010 and we need to add some reports with ReportViewer control.

Is there any tutorial or examples that explain how to create a ReportViewer for differente languages in VS2010?

Thanks all,

Manuel Dias


XAML intellisence not working for one VS2010 project in Solution


I've got a WPF solution with 5 projects in it. For some reason...the XAML intellisense quit working and it's driving me nuts. All other intellisense is working just fine (C# for code behinds). I am "not" using any network shares as I saw on other forum posts that this might be the problem. Again...this solution was working fine before. Problem exists where ever I take it XP, W7....Please help!!!


Paul Reed

RS Integrated Mode ReportViewer Webpart not working





I have setup RS in integrated mode, and i can access and view the reports by clicking on them in the SharePoint document library. However i would like to view some of the reports in webparts elsewhere on the site.  When i click to add a webpart i have the following selection of RS related webparts:


1. Report Explorer

2. Report Viewer

3. ReportViewerWebpart

4. ReportViewWebpart

5. SPExplorer

6. SPViewer

7. SQL Server Reporting Services Report Viewer


Number 2,3 and 6 all appear to be exactly the same, and in the toolpane for all 3 it asks me the URL for the report Manager and the path to the report.  The Manager no longer exists in Integrated Mode and i cant figure out therefore what i should enter here to display the report. (this worked fine to display the report when in Native Mode...)


Number 1 and 5 are a similar story.


Number 7 doesnt work at all - when i try and add the webpart it says:


"Unable to add selected webpart(s).

SQL Server Reporting Services Report Viewer:

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend