Showing posts with label maintenance. Show all posts
Showing posts with label maintenance. Show all posts

Thursday, March 22, 2012

strange globalization error

Hi People...

heres hoping someone has run into this scenario before;

I am trying to write a calendar maintenance page, as part of a larger web based app,

The problem: An exception is being raised in a globalization module;

thats not too strange, however the error only fires when there is a post-back from a link button !?

The error details are below..if that helps at all

thanks in advance..

Charli0

<ERROR TRACE
Exception Details:

System.ArgumentOutOfRangeException: Offset and length must refer to a position in the string. Parameter name: string1

Stack Trace:

[ArgumentOutOfRangeException: Offset and length must refer to a position in the string.
Parameter name: string1]
System.Globalization.CompareInfo.CompareRegion(Void* pSortingTable, Int32 win32LCID, String string1, Int32 offset1, Int32 length1, String string2, Int32 offset2, Int32 length2, CompareOptions options) +0
System.Globalization.CompareInfo.Compare(String string1, Int32 offset1, Int32 length1, String string2, Int32 offset2, Int32 length2, CompareOptions options) +54
System.String.Compare(String strA, Int32 indexA, String strB, Int32 indexB, Int32 length, Boolean ignoreCase, CultureInfo culture) +130
System.Web.UI.WebControls.Calendar.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
System.Web.UI.Page.ProcessRequestMain()

</ERROR TRACECould do with a code sample.

Is thething you're comparing loosing it's value on postback?