현재 Windows Phone 응용 프로그램의 현지화 작업을하고 있지만 DateTime.Now.ToString()에서 범위를 벗어나는 색인을 얻는 중입니다.Windows Phone DateTime 예외
내 컴퓨터의 시간대를 변경해 보았지만 오류가 지속됩니다.
이 문제의 원인이나 해결 방법을 잘 모르겠습니다.
아이디어가 있으십니까? 미리 감사드립니다! (요청시 추가)
스택 추적
mscorlib.dll!System.Globalization.DateTimeFormatInfo.GetYearMonthPattern(int calID = 1) + 0x25 bytes
mscorlib.dll!System.Globalization.DateTimeFormatInfo.InitializeOverridableProperties() + 0x94 bytes
mscorlib.dll!System.Globalization.DateTimeFormatInfo.Calendar.set(System.Globalization.Calendar value = {System.Globalization.GregorianCalendar}) + 0x1a8 bytes
mscorlib.dll!System.Globalization.DateTimeFormatInfo.DateTimeFormatInfo(System.Globalization.CultureTableRecord cultureTable = {System.Globalization.CultureTableRecord}, System.Globalization.Calendar cal = {System.Globalization.GregorianCalendar}) + 0x29 bytes
mscorlib.dll!System.Globalization.CultureInfo.DateTimeFormat.get() + 0x19 bytes
mscorlib.dll!System.Globalization.CultureInfo.GetFormat(System.Type formatType = {Name = "DateTimeFormatInfo" FullName = "System.Globalization.DateTimeFormatInfo"}) + 0x22 bytes
mscorlib.dll!System.Globalization.DateTimeFormatInfo.CurrentInfo.get() + 0x2a bytes
mscorlib.dll!System.DateTime.ToString()
> QuickAirtime.dll!QuickAirtime.PaymentSummary.btnTransactionClick(object sender = {System.Windows.Controls.Button}, System.Windows.RoutedEventArgs e = {System.Windows.RoutedEventArgs}) Line 78 + 0x2 bytes C#
System.Windows.dll!System.Windows.Controls.Primitives.ButtonBase.OnClick() + 0x1f bytes
System.Windows.dll!System.Windows.Controls.Button.OnClick() + 0x1f bytes
System.Windows.dll!System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(System.Windows.Input.MouseButtonEventArgs e = {System.Windows.Input.MouseButtonEventArgs}) + 0x4e bytes
System.Windows.dll!System.Windows.Controls.Control.OnMouseLeftButtonUp(System.Windows.Controls.Control ctrl = {System.Windows.Controls.Button}, System.EventArgs e = {System.Windows.Input.MouseButtonEventArgs}) + 0xc bytes
System.Windows.dll!MS.Internal.JoltHelper.FireEvent(System.IntPtr unmanagedObj = 227599168, System.IntPtr unmanagedObjArgs = 227256368, int argsTypeIndex = 169, int actualArgsTypeIndex = 169, string eventName = "[email protected]@4") + 0x115 bytes
[External Code]
정말 예외가 DateTime.Now.ToString()에 의해 throw되는지 확실합니까? 그건 불가능 해 보입니다. (예외 스택 추적을 게시하십시오.) –
@PhilippeLeybaert StackTrace를 보여주기 위해 질문을 편집했습니다. – user1477707
예외가 발생하는 실제 코드 줄과 그 주변의 몇 줄을 보여줄 수 있습니까? 그 오류를 재생산? 또한 : 당신은 에뮬레이터/전화 장치에서 지원하지 않는 문화를 강요하고 있습니까? –