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

Top 5 Contributors of the Month
Post New Web Links

ReportViewer fails to load viewstate after drillthrough has been succesfully done

Posted By:      Posted Date: September 23, 2010    Points: 0   Category :ASP.Net

I have a ReportViewer (RV) added to a control. I update this RV when it has to display a different report using the following pattern:

1    	Public Sub setReport(ByVal serverURL as String, ByVal reportPath as String)
2 'Set the processing mode for the ReportViewer to Remote 3 reportViewer1.ProcessingMode = WebForms.ProcessingMode.Remote
4 reportViewer1.AsyncRendering = True 5 6 'The serversideReport is the object we'll be working on - the reportViewer must be in remote mode 7 Dim serversideReport As WebForms.ServerReport = reportViewer1.ServerReport
8 9 'Set the report server URL and report path 10 serversideReport.ReportServerUrl = New Uri(serverURL)
11 serversideReport.ReportPath = reportPath
12 13 'You have to set the parameters on the serversideRepor

View Complete Post

More Related Resource Links

How to avoid viewstate in page load event??

Hello Everyone, Here Is my scenario,I haveMaster Page -> ASPX page -> User ControlUser control page is contains all dynamic bind controls (e.g Repeater) depended on ASPX Page (Only one parameter say ItemNo) The problem is, if I bound user control on page load event with passing respective parameters then it's create to much view state (I checked source file and it's almost 1.5 MB) In other way if I put one textbox, and a command button and I pass required parameter on button click and load the control then page size is ok (I checked and it's  < 500KB) So is it any way I can reduce my page/state size??

Hosted Designer fails to load workflow xaml that has InArguments with default values (xaml saved by

I have hosted the designer in our app. Using the hosted designer, workflows are saved as xaml to a database. When an end user wishes to edit a workflow the xaml is downloaded to a file and loaded into the designer via the .xaml file. The user can also associate assemblies with the workflow and there is a mechanism which makes sure that these assemblies are loaded into the appdomain and available. The problem we are hitting occurs when the top level activity (Sequence) has InArgument with default value. I create a simple Sequence, add InArguments (type of Int32 and String)  and set some default values. I save the workflow xaml to the database and close down the designer. When I wish to edit the workflow and try to load I get the following errors Could not find member '{clr-namespace:}_e905.argument3'. Could not find member '{clr-namespace:}_e905.argument1'. suggesting that some assembly/namespace missing. Here is the xaml I try to load: <Activity mc:Ignorable="sap" x:Class="{x:Null}" this:_e905.argument3="99" xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mva="clr-namespace:Microsoft.VisualBasic.Activities;assembly=System.Activities" xmlns:s="clr-namespace:System;assembly=mscorl

Editor Control fails to load




I have installed VWD2010

created a new website (Build Target 3.5)

I then made a reference to the AjaxControlToolkit.dll where it created a new Bin folder and added a whole load of folders below plus the dll file apprears.

I've also installed the AJAX tool bar where all the Ajax controls are available.

Then on a new page I added the Editor control which rendered the page as the following


<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit.HTMLEditor" tagprefix="cc1" %>

<!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">
    <form id="form1" runat="server">
        <cc1:Editor ID="Editor1" runat="server" />

Gridview RowCancellingEdit Failed to Load ViewState


The subject title should say it all, and I'm not sure what I've done to cause the problem.  Getting the GridView into editing doesn't pose a problem, but getting it back to read only does.

protected void ExceptionsGridView_RowEditing(object sender, GridViewEditEventArgs e)
        string TXTCLIENT = ClientDropDownList.SelectedValue;
        string TXTPROV = DoctorDropDownList.SelectedValue;
        decimal TXTYEAR = Convert.ToDecimal(Calendar1.SelectedDate.Year.ToString());
        decimal TXTMMDD = Convert.ToDecimal(String.Concat(Calendar1.SelectedDate.Month.ToString().PadLeft(2, '0'), Calendar1.SelectedDate.Day.ToString().PadLeft(2, '0')));
        ExceptionsGridView.DataSource = schdExceptions(TXTCLIENT, TXTPROV, TXTYEAR, TXTMMDD);
        ExceptionsGridView.EditIndex = e.NewEditIndex;

        ExceptionsGridView.EditIndex = -1;

    protected void ExceptionsGridView_RowCancelingEdit(object sender, GridViewCancelEditEventArgs e)
        string TXTCLIENT = ClientDropDownList.SelectedValue;
        string TXTPROV = DoctorDropDownList.SelectedValue;
        decimal TXTYEAR = Convert.ToDecimal(Calendar1.SelectedDate.Year.ToString());
        decimal TXTMMDD = Convert.ToDecimal(String.Concat(Calendar1.SelectedDate.Month.ToSt

On Change:Prevent Evaluation fails with error Could not load file or assembly 'Microsoft.SqlServer.


Hi All,

I am facing a strange issue with Policy Based Management. Exact problem is as below

SQL Setups


I have Lenovo laptop having 3 SQL instances installed on it.

SQL Server 2005 (x86) Developer Edition 9.00.4053  -- Named Instance : SQL2K5

SQL Server 2008 (x86) Developer Edition 10.0.1600.22 -- Named Instance : SQL2K8

SQL Server 2008 R2 (x86) Developer Edition 10.50.1600.1 -- Named Instance : SQL2K8R2


I configured SQL2K8R2 instance as a Centralized Server and registed SQL2K8 & SQL2K5 under this. I configured a new condition by using facet: MULTIPART NAME. As per this condition Table Should start with TEST_ in database TEST . Evaluation Mode set to              On Change: Prevent. Idea is if some one logs to database TEST and tries to create table with name other then starting with TEST_ then it should fail.

I Imported this policy on registered servers thru Centralized Management Server Action, as expected policy got configured on Registred SQL2K8 instance

Failed to load viewstate. The control tree into which viewstate is being loaded must match the contr


Now here is the weird thing. First i am running it locally on the built in vs2008 web server.

I load my control in fine, do a postback from a linkbutton, locally on my machine it all works fine, no issue.

However when it goes onto my host, it falls over with the message:


Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request.


Now i also load controls dynamically and use postbacks and things in the admin area of the site...and that works fine, however my front end just keeps failing? See the code behing below:


using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Reflection;

namespace DJSWebCMS.Web
	public partial class Index : System.Web.UI.Page

		private Data.Repositories.RepoClientPage repo = new DJSWebCMS.Data.Repositories.RepoClientPage(Helpers.AppSettings.DatabaseConnectionString);

		public Data.DataObjects.PageDisplay DisplayPage

		protected void Page_Load(object sender, EventArgs e)
			if (String.IsNullOrEmpty(Helpers.Request.Path) && Helpers.Request.ID <= 0)

error when trying to load the report in reportviewer in the active tab



I created a tabcontainer that contains initially 1 tab, but when the user clicks on a button, it will create a new tab and make this one active.

The newley created tab contains a reportviewer where i should load the report from the sql server. But I'm getting this error in jscript --> this.m_clientController = null in OnReportLoaded

Tried to add a new button on this tab2, and it works so I'm not sure what's wrong... can someone give me some indication?




Resource Loading Problem (2 UserControls, 1 Load works, 1 Fails. Both UserControls and the Resource


I am having an issue where I have 2 WPF UserControls loading a PNG file from codebehind, the png loads fine in one UserControl, but fails in the other.


This is the top of the codebehind for the UserControl that works...

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.IO;
using System.ComponentModel;

using ModuleInterface;
using System.Reflection;
using System.Windows.Threading;

Content sources page (layouts/listcontentsources.aspx) takes 10 minutes to load or fails with 'Unkn

Ever since this weekend we cannot normally access the Search Content sources page. It takes ages to load and sometime fails with "Unknown error". Also, we have incremental crawls on all our content sources that are stuck for ~30 hours now. Restarting search services didn't help. There's almost no activity on our search server. May have something to do with backup software on the search server but we uninstalled it completely now.

MOSS2007, latest SP's, clustered farm, 2 * FWS, 2 * SQL, separate index server

Any clues?


Failed to load viewstate.



I had problems with my custom field generator. If I put this line of code

GridView1.ColumnsGenerator = new FieldGenerator(table, true);

in page_init event, I get no errors, but event GenerateFields never fires.

Then I found answer on this forum, that I have to move this line of code to Page_Load event, but now I ger this error, when I am selecting rows in gridview.

Failed to load viewstate.  The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request.  For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request. 


save and load RDL/RDLC with Data(offline mode with reportviewer), load RDL/RDLC with saved data in r

Hello every one
We are new to SSRS.
we have a client server application and have reports in crystal report, for each request to report from client we run report in server and then send saved rpt(crystal report file that data is embedded in file ) to client and after that load it to client crystal report viewer. clients can saved report file with data and load it in another time(truly we don't use crystal as report server and our application manage reports ).
we plan to use SSRS in our application instead of crystal report(for problems that there are in crystal version and deployment of crystal report packages ). in our scenario we need use RDL without server truly just application use server but client just receive report file and load it to RDL/RDLC ReportViewer and reportviewr run in local mode without communicate with server like crystal previous solution we need clients can save report with data and reload it in another time. we can't find any solution for it.

Are there any solution to save RDL/RDLC file with Data and load it again in Reportviewer?

Can use *.rdl.data for it?

Why there is not any easy way to embed data in Rdl  or Rdlc file and reload them with data?

Is it a weakness of SSRS and SSRS has any plan t

Combine, minify and compress JavaScript files to load ASP.NET pages faster

Websites are getting more interactive these days and most of this interactivity comes from JavaScript. People are using different JavaScript libraries and frameworks to make their websites more interactive and user friendly.

DataTable - Load from IDataReader - CreateDataReader - ReadXml WriteXml - Free ADO.NET Tutorials

The DataTable in ADO.NET 2.0 has been seriously beefed up and I absolutely love it. Not everything we consume deals with multiple resultsets and requires the ever popular DataSet. With the cool new features in the ADO.NET 2.0 DataTable, we can get many of the cool features in the DataSet without all the extra baggage and memory footprint particular to multiple resultsets.

Load DataTable from IDataReader

ActiveSync 4.5 (Free Down Load) using in Windows Mobile Pocket Pc

Microsoft ActiveSync 4.5 is the latest sync software release for Windows Mobile-powered devices. ActiveSync provides a great synchronization experience with Windows®-powered PCs and Microsoft Outlook right out of the box.


* Faster file transfer speed and photo sync via Outlook are only available for Windows Mobile 5.0 powered devices.
* Remote PC Sync (via WiFi or LAN) has been removed due to Enterprise customer feedback around security issues.
* Customers using Microsoft Exchange 2003 Service Pack 2 with devices running the Messaging and Security Feature Pack for Windows Mobile 5.0 will benefit from the following feature enhancements included in ActiveSync 4.5: Direct Push Technology, local device wipe, and certificate powered authentication to Microsoft Exchange.
* Microsoft® Outlook® 2000 is not supported by ActiveSync 4.5. It is highly recommended that users upgrade to Microsoft® Outlook® 2003 messaging and collaboration client.
* Conversion of database files for use on a mobile device is not supported by ActiveSync 4.5. On previous versions, this feature was limited to devices running Windows Mobile software for Pocket PC 2003 and earlier.
* Conversion of font files for use on a mobile device is not supported by ActiveSync 4.5. On previous versions, this feature was limited to devices running Windows Mobile software for Pocket P

website load testing


How can i check "load testing" on my site (its using vb.net and SQL server)? Any free tool available or can it be done through windows server IIS?

Open ModalPopup dialog on page load


Is there a way to make a modal popup panel active on page load so that the user can't do anything until they deal with the popup dialog?

JQuery Treeview plugin is not working with Ajax page load in ie8


Hi there,

I developed a page where i m using jquery treeview plugin to generate tree. It worked fine on FF, IE8 with out ajax.

But when my page loads thro' ajax call in IE8, it is not collapsing or expanding tree.

Any idea?

Thanks in advance.

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