ViewStateDisabledException Class

Visual Studio 2010

Occurs when the ReportViewer control detects that view state is disabled.

Namespace: Microsoft.Reporting.WebForms
Assembly: Microsoft.ReportViewer.WebForms (in microsoft.reportviewer.webforms.dll)

[SerializableAttribute] 
public sealed class ViewStateDisabledException : ReportViewerException
/** @attribute SerializableAttribute() */ 
public final class ViewStateDisabledException extends ReportViewerException
SerializableAttribute 
public final class ViewStateDisabledException extends ReportViewerException

You must enable view state in your ASP.NET page for the ReportViewer control to function properly. For more information, see ASP.NET View State Overview.

System.Object
   System.Exception
     Microsoft.Reporting.WebForms.ReportViewerException
      Microsoft.Reporting.WebForms.ViewStateDisabledException

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: