Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ViewStateDisabledException Class
Collapse the table of content
Expand the table of content

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 ref class ViewStateDisabledException sealed : public 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:
© 2015 Microsoft