Invalid State w/ JS popup window

N

none

Hi,

I'm opening a popup window with JavaScript. It has a command button.

This is from the primary source (opener) window:
###################################################################
// =======================================================
function popup01 ()
{
var win_url
= "http://localhost/Webfolder01/DBCtrl.aspx";
var win_name
= "DBpopup01";
var win_chrome
= "toolbar=0,scrollbars=1,location=1,statusbar=0,menubar=0,resizable=1";
var win_dimn
= ",width=444,height=444,left = 290,top = 162";

DBname_popup = window.open (win_url, win_name, win_chrome + win_dimn);
if (window.focus) {DBname_popup.focus()}
}
// =======================================================
###################################################################



When I click the command button on the popup window, and upon postback,
I get an HttpException:

[HttpException (0x80004005): The state information is invalid for this page
and might be corrupted.]

... along with:
[FormatException: Invalid character in a Base-64 string.]


Does anyone have any ideas as to what is causing this?


Thanks in advance!


The error page:
#######################################################################################
#######################################################################################

Server Error in '/Webfolder01' Application.
--------------------------------------------------------------------------------

The state information is invalid for this page and might be corrupted.
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.

Exception Details: System.Web.HttpException: The state information
is invalid for this page and might be corrupted.

Source Error:


[No relevant source lines]


Source File: c:\WINNT\Microsoft.NET\Framework\v2.0.50727
\Temporary ASP.NET Files\webfolder01\4d30b6b5
\585efd3a\App_Web_znhipk8d.0.cs Line: 0

Stack Trace:


[FormatException: Invalid character in a Base-64 string.]
System.Convert.FromBase64String(String s) +0
System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +72
System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter
.Deserialize(String serializedState) +4
System.Web.UI.Util.DeserializeWithAssert
(IStateFormatter formatter, String serializedState) +37
System.Web.UI.HiddenFieldPageStatePersister.Load() +140

[ViewStateException: Invalid viewstate.
Client IP: 127.0.0.1
Port: 1232
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0;
.NET CLR 1.1.4322; .NET CLR 2.0.50727)
ViewState: [a bunch of stuff]

[HttpException (0x80004005): The state information is invalid for this page
and might be corrupted.]
System.Web.UI.ViewStateException.ThrowError
(Exception inner, String persistedState,
String errorPageMessage, Boolean macValidationError) +116
System.Web.UI.HiddenFieldPageStatePersister.Load() +240
System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +83
System.Web.UI.Page.LoadAllState() +35
System.Web.UI.Page.ProcessRequestMain
(Boolean includeStagesBeforeAsyncPoint,
Boolean includeStagesAfterAsyncPoint) +6953
System.Web.UI.Page.ProcessRequest
(Boolean includeStagesBeforeAsyncPoint,
Boolean includeStagesAfterAsyncPoint) +154
System.Web.UI.Page.ProcessRequest() +86
System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +18
System.Web.UI.Page.ProcessRequest(HttpContext context) +49
ASP.ctrlinit_ctrlinit12b_aspx.ProcessRequest(HttpContext context)
in c:\WINNT\Microsoft.NET\Framework\v2.0.50727
\Temporary ASP.NET Files\webfolder01\4d30b6b5
\585efd3a\App_Web_znhipk8d.0.cs:0
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication
.IExecutionStep.Execute() +154
System.Web.HttpApplication.ExecuteStep
(IExecutionStep step, Boolean& completedSynchronously) +64

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET
Version:2.0.50727.42

#######################################################################################
#######################################################################################



Thanks in advance!
 
M

MSDN

http://groups.google.com/group/micr...d+for+this+page&rnum=4&hl=en#a7dc13b319ed71de


Hi,

I'm opening a popup window with JavaScript. It has a command button.

This is from the primary source (opener) window:
###################################################################
// =======================================================
function popup01 ()
{
var win_url
= "http://localhost/Webfolder01/DBCtrl.aspx";
var win_name
= "DBpopup01";
var win_chrome
=
"toolbar=0,scrollbars=1,location=1,statusbar=0,menubar=0,resizable=1";
var win_dimn
= ",width=444,height=444,left = 290,top = 162";

DBname_popup = window.open (win_url, win_name, win_chrome + win_dimn);
if (window.focus) {DBname_popup.focus()}
}
// =======================================================
###################################################################



When I click the command button on the popup window, and upon postback,
I get an HttpException:

[HttpException (0x80004005): The state information is invalid for this
page
and might be
corrupted.]

... along with:
[FormatException: Invalid character in a Base-64 string.]


Does anyone have any ideas as to what is causing this?


Thanks in advance!


The error page:
#######################################################################################
#######################################################################################

Server Error in '/Webfolder01' Application.
--------------------------------------------------------------------------------

The state information is invalid for this page and might be corrupted.
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.

Exception Details: System.Web.HttpException: The state information
is invalid for this page and might be corrupted.

Source Error:


[No relevant source lines]


Source File: c:\WINNT\Microsoft.NET\Framework\v2.0.50727
\Temporary ASP.NET Files\webfolder01\4d30b6b5
\585efd3a\App_Web_znhipk8d.0.cs Line: 0

Stack Trace:


[FormatException: Invalid character in a Base-64 string.]
System.Convert.FromBase64String(String s) +0
System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +72
System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter
.Deserialize(String serializedState) +4
System.Web.UI.Util.DeserializeWithAssert
(IStateFormatter formatter, String serializedState) +37
System.Web.UI.HiddenFieldPageStatePersister.Load() +140

[ViewStateException: Invalid viewstate.
Client IP: 127.0.0.1
Port: 1232
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0;
.NET CLR 1.1.4322; .NET CLR 2.0.50727)
ViewState: [a bunch of stuff]

[HttpException (0x80004005): The state information is invalid for this
page
and might be corrupted.]
System.Web.UI.ViewStateException.ThrowError
(Exception inner, String persistedState,
String errorPageMessage, Boolean macValidationError) +116
System.Web.UI.HiddenFieldPageStatePersister.Load() +240
System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +83
System.Web.UI.Page.LoadAllState() +35
System.Web.UI.Page.ProcessRequestMain
(Boolean includeStagesBeforeAsyncPoint,
Boolean includeStagesAfterAsyncPoint) +6953
System.Web.UI.Page.ProcessRequest
(Boolean includeStagesBeforeAsyncPoint,
Boolean includeStagesAfterAsyncPoint) +154
System.Web.UI.Page.ProcessRequest() +86
System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +18
System.Web.UI.Page.ProcessRequest(HttpContext context) +49
ASP.ctrlinit_ctrlinit12b_aspx.ProcessRequest(HttpContext context)
in c:\WINNT\Microsoft.NET\Framework\v2.0.50727
\Temporary ASP.NET Files\webfolder01\4d30b6b5
\585efd3a\App_Web_znhipk8d.0.cs:0
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication
.IExecutionStep.Execute() +154
System.Web.HttpApplication.ExecuteStep
(IExecutionStep step, Boolean& completedSynchronously) +64

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42;
ASP.NET
Version:2.0.50727.42

#######################################################################################
#######################################################################################



Thanks in advance!
 
N

none

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top