2012-01-06 3 views
1

Я использую ASP.Net 4.0 и выдает ошибку только в одной странице и в одном браузере. Эта ошибка возникает только в IE, когда в других браузерах, т. Е. (Chrome, firefox, safari, opera), во всех из них эта страница работает правильно и работает нормально, но эта страница дает ошибку и только в IE, когда мы вызываем любое событие кнопки этой страницы в IE, но если мы используем не IE, он отлично работает. Я слишком зациклен, почему эта ошибка возникает только в IE, и я попытался много сделать эту ошибку, но я потерпел неудачу. Может кто-нибудь помочь мне, что я описываю эту информацию об ошибке:Не удалось загрузить viewstate. Ошибка произошла только в IE

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. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Сведения об исключении:

System.Web.HttpException: 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.

Источник ошибки:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Трассировка стека:

[HttpException (0x80004005): 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.]
System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +327
System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +148 System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +225
System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +148 System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +225 System.Web.UI.Page.LoadAllState() +312
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +747

Скриншот : enter image description here

+0

Уход, чтобы показать код, который вызывает ошибку? –

+0

Какая версия IE, что и как выполняются динамические элементы управления, и есть ли у вас панели обновлений? – V4Vendetta

+0

Я проверяю это на IE-7,8,9 всех версий и выдает эту ошибку во всех браузерах ... –

ответ

4

Отключить эту страницу.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind=" #####.aspx.cs" Inherits="#####" EnableViewState="false"%> 
+0

Мне интересно, как мы находим, что это действительно вызывает эту проблему – sarat

Смежные вопросы