ViewStateDisabledException Class

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

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

Syntax

'Declaration
<SerializableAttribute> _
Public NotInheritable Class ViewStateDisabledException
    Inherits ReportViewerException
'Usage
Dim instance As ViewStateDisabledException
[SerializableAttribute] 
public sealed class ViewStateDisabledException : ReportViewerException
[SerializableAttribute] 
public ref class ViewStateDisabledException sealed : public ReportViewerException
/** @attribute SerializableAttribute() */ 
public final class ViewStateDisabledException extends ReportViewerException
SerializableAttribute 
public final class ViewStateDisabledException extends ReportViewerException

Remarks

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.

Inheritance Hierarchy

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

Thread Safety

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

See Also

Reference

ViewStateDisabledException Members
Microsoft.Reporting.WebForms Namespace