Can I filter these types of messages?

414 views
Skip to first unread message

Cbscameron

unread,
Jul 24, 2008, 3:57:13 PM7/24/08
to ELMAH
System.FormatException: Invalid length for a Base-64 char array.
Generated: Thu, 24 Jul 2008 18:44:22 GMT

System.Web.HttpException: The client disconnected. --->
System.Web.UI.ViewStateException: Invalid viewstate.
Client IP: 192.168.13.203
Port: 1223
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2;
SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1)
ViewState: /
wEPDwUKLTk2MzU5Nzc4Mg9kFgICAw9kFkYCBQ8PFgIeB0VuYWJsZWRoZGQCBg8PFgIfAGhkZAILDw8WAh4EVGV4dAUJKlBFTkRJTkcqZGQCDQ8PFgYeCUJhY2tDb2xvcgqkAR4IUmVhZE9ubHloHgRfIVNCAghkZAIPDw8WBh8CCqQBHwNoHwQCCGRkAhEPDxYGHwIKpAEfA2gfBAIIZGQCEw8PFgYfAgqkAR8DaB8EAghkZAIVDw8WAh8BBTJPc3VsbGl2YW4sIE1pa2UgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRkAiMPDxYIHwIKpAEfA2gfAQUJNy8yNC8yMDA4HwQCCGRkAikPDxYCHwEFHiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRkAisPDxYCHwEFMk1pa2UuTydTdWxsaXZhbkBkaXNwZW5zZXJzZXJ2aWNlcy5jb20gICAgICAgICAgICAgZGQCLQ8PFgYfBAIIHwIKpAEfA2hkZAIxDw8WBh8CCqQBHwNoHwQCCGRkAjMPDxYCHwEFMk9zdWxsaXZhbiwgTWlrZSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGQCNw8PFgIfAQUeICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGQCOQ8PFgIfAQUyTWlrZS5PJ1N1bGxpdmFuQGRpc3BlbnNlcnNlcnZpY2VzLmNvbSAgICAgICAgICAgICBkZAJjDw8WAh4HVmlzaWJsZWhkZAJzDxAPFgIfAGdkZGRkAnUPEA8WBB4HQ2hlY2tlZ...
---> System.FormatException: Invalid length for a Base-64 char array.
at System.Convert.FromBase64String(String s)
at System.Web.UI.ObjectStateFormatter.Deserialize(String
inputString)
at
System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter.Deserialize(String
serializedState)
at System.Web.UI.Util.DeserializeWithAssert(IStateFormatter
formatter, String serializedState)
at System.Web.UI.HiddenFieldPageStatePersister.Load()
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
at System.Web.UI.ViewStateException.ThrowError(Exception inner,
String persistedState, String errorPageMessage, Boolean
macValidationError)
at System.Web.UI.HiddenFieldPageStatePersister.Load()
at System.Web.UI.Page.LoadPageStateFromPersistenceMedium()
at System.Web.UI.Page.LoadAllState()
at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext
context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.dsipages_dsicontview_aspx.ProcessRequest(HttpContext
context)
at
System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
Boolean& completedSynchronously)

Atif Aziz

unread,
Jul 24, 2008, 4:36:37 PM7/24/08
to el...@googlegroups.com
Yes, you can, but you must define the set of conditions that identify such a request to be filtered in the future.

Cbscameron

unread,
Jul 24, 2008, 7:05:36 PM7/24/08
to ELMAH
Thank you for your reply.

Here is how I am trying without success. (web.config)

<errorFilter>
<test>
<is-type-compatible binding="BaseException"
type="System.Web.UI.ViewStateException" />
<is-type-compatible binding="BaseException"
type="System.FormatException" />
<is-type-compatible binding="BaseException"
type="System.Web.HttpException" />
</test>
</errorFilter>

Atif Aziz

unread,
Jul 24, 2008, 7:09:39 PM7/24/08
to el...@googlegroups.com
Try instead wrapping all the <is-type-compatible> elements in an <or> element, like this:

<errorFilter>
<test>
<or>
<is-type-compatible binding="BaseException"
type="System.Web.UI.ViewStateException" />
<is-type-compatible binding="BaseException"
type="System.FormatException" />
<is-type-compatible binding="BaseException"
type="System.Web.HttpException" />
</or>
</test>
</errorFilter>


-----Original Message-----
From: el...@googlegroups.com [mailto:el...@googlegroups.com] On Behalf Of Cbscameron
Reply all
Reply to author
Forward
0 new messages