Application crash after set IsLocalizationLanguageRespected?

16 posts, 0 answers
  1. hvduc
    hvduc avatar
    33 posts
    Member since:
    Jun 2010

    Posted 25 Mar 2013 Link to this post

    Hi Telerik,
    I'm using Telerik controls for Silverlight Q1 2013,
    For setting gridview's data format to my own culture info, I set CurrentThread.CurrentCulture to my culture and set GridView's IsLocalizationLanguageRespected = False.
    After doing this, my application crash where form is showed.
    I reproduced this error with this simple project.

    On App.xaml.vb, set culture for current thread:
    System.Threading.Thread.CurrentThread.CurrentCulture = New Globalization.CultureInfo("vi-VN")
    System.Threading.Thread.CurrentThread.CurrentUICulture = New Globalization.CultureInfo("vi-VN")

    On Home.xaml, set IsLocalizationLanguageRespected = False:
    <navigation:Page
      x:Class="TestLocalizationRespectGridView.Home"
      xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
      mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480" 
      Style="{StaticResource PageStyle}">
     
      <Grid x:Name="LayoutRoot">
            <telerik:RadGridView AutoGenerateColumns="False"
                                 x:Name="grd"
                                 IsLocalizationLanguageRespected="False"
                                 IsReadOnly="True">
                <telerik:RadGridView.Columns>
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding ID}"
                                                HeaderTextAlignment="Center"
                                                TextAlignment="Center"
                                                Header="ID"
                                                Width="100"/>
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding Name}"
                                                HeaderTextAlignment="Center"
                                                Header="Name"
                                                Width="200"/>
                    <telerik:GridViewDataColumn DataMemberBinding="{Binding Value}"
                                                DataFormatString="{}{0:C}"
                                                HeaderTextAlignment="Center"
                                                TextAlignment="Right"
                                                Header="Value"
                                                Width="400"/>
                </telerik:RadGridView.Columns>
            </telerik:RadGridView>
        </Grid>
     
    </navigation:Page>

    On Home.xaml.vb, set GridView's ItemsSource = list of object:
    Imports System.Windows.Controls
    Imports System.Windows.Navigation
     
    ''' <summary>
    ''' Home page for the application.
    ''' </summary>
    Partial Public Class Home
        Inherits Page
     
        ''' <summary>
        ''' Creates a new <see cref="Home"/> instance.
        ''' </summary>
        Public Sub New()
            InitializeComponent()
     
            Me.Title = ApplicationStrings.HomePageTitle
            Dim lstDemo As New List(Of ObjectDemo)
            For i = 1 To 100
                lstDemo.Add(New ObjectDemo(i, "Object " + i.ToString, 1000000 * i))
            Next
            grd.ItemsSource = lstDemo
     
        End Sub
     
        ''' <summary>
        ''' Executes when the user navigates to this page.
        ''' </summary>
        Protected Overloads Overrides Sub OnNavigatedTo(ByVal e As NavigationEventArgs)
        End Sub
    End Class
     
    Public Class ObjectDemo
        Public Property ID As Integer
        Public Property Name As String
        Public Property Value As Decimal
     
        Public Sub New(id As Integer, name As String, value As Decimal)
            Me.ID = id
            Me.Name = name
            Me.Value = value
        End Sub
    End Class
  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 29 Mar 2013 Link to this post

    Hi,

    Thank you for reporting it. I will investigate the case and let you know once I have mo information on the topic.
     

    All the best,
    Maya
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. Alex
    Alex avatar
    16 posts
    Member since:
    Oct 2009

    Posted 29 Apr 2013 Link to this post

    Hi there,

    I'm getting the AppCrash too, not in Visual Studio, but when the application is published.
    We're using Win2008R2 IIS7.5.

    The EventLog showed the following:

    Faulting application name: iexplore.exe, version: 9.0.8112.16476, time stamp: 0x5126e7ac
    Faulting module name: ntdll.dll, version: 6.1.7601.17725, time stamp: 0x4ec49b8f
    Exception code: 0xc00000fd
    Fault offset: 0x0002dede
    Faulting process id: 0xcb4
    Faulting application start time: 0x01ce44ea1da63f24
    Faulting application path: C:\Program Files (x86)\Internet Explorer\iexplore.exe
    Faulting module path: C:\Windows\SysWOW64\ntdll.dll

    Are there any news about this?

    Best regards,
    Alex
  4. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 30 Apr 2013 Link to this post

    Hello Alexander,

    The thing is that I was not able to reproduce the behavior on my side. Will it be possible for you to share a bit more details about your exact sceanrio ? Is there anything more specific that you do except for setting the property to false ? Could you take a look at the sample attached and let me know whether I am missing something and if you can get the same exception on it ?  

    All the best,
    Maya
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  5. Alex
    Alex avatar
    16 posts
    Member since:
    Oct 2009

    Posted 02 May 2013 Link to this post

    Hi Maya,

    I used a SilverlightApplication Template with a hosted ASP-Web Page. Everything out of the box, I only added the code from my predecessor and deleted

    <compilation debug="true" targetFramework="4.5"/>
    <httpRuntime targetFramework="4.5" />

    from the Web.Config (only 4.0 on Server). Our Win2008R2 Server has an english OS, we're using german for the culture.

    I tested your Silverlight code in my application, but it crashed too.

    I hope this will help you.

    Best regards,
    Alex
  6. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 06 May 2013 Link to this post

    Hi Alexander,

    Thank you a lot for providing more information. So, far I managed to reproduce the issue in desing time (which I have already resolved and the fix is available in the internal build coming later today) and when the application is seen directly through the html/ aspx page (not when it is run as separate Silverlight application). Is this the case you get the exception as well ?   

    All the best,
    Maya
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  7. Alex
    Alex avatar
    16 posts
    Member since:
    Oct 2009

    Posted 07 May 2013 Link to this post

    Hi Maya,

    I only tested the behavior with the *.aspx site, there I got the exception. I didn't test it via html or silverlight only.

    I'll test internal builds later the day and tell you my answers.

    greets,
    Alex
  8. Alex
    Alex avatar
    16 posts
    Member since:
    Oct 2009

    Posted 08 May 2013 Link to this post

    Hi Maya,

    I can still reproduce the AppCrash with internal builds: 2013.1.507.1050.

    greets,
    Alex
  9. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 08 May 2013 Link to this post

    Hi Alexander,

    The internal build contains fix for the issue with the designer that I have resolved. The one that still appears is that with the apsx page and I am still tracing the cause of the problem. Thank you a lot for your great cooperation. 

    Regards,
    Maya
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  10. Pavel
    Pavel avatar
    18 posts
    Member since:
    Nov 2011

    Posted 21 May 2013 Link to this post

    Hello, Maya,

    I also face the problem. Library version 2013.1.520.1050.

    I can confirm that the issue doesn't appear on my developer PC. But it's reproduced on all customer machines (WInXP+IE8, Win7+IE9/10, WinServer2008R2+IE9) - at least 5 PCs with different installed software were tested. I also 100% reproduce the issue on VMWare with WinXPSP3+IE8. I checked different releases of IE hotfixes, Silverlight versions with the same result: works fine on the developer PC, crashes on test and customer PCs. All of them have Russian OS.

    The minimum code to reproduce includes just an empty grid with the flag set to False:
        <Grid x:Name="LayoutRoot" Background="White">
                <telerik:RadGridView IsLocalizationLanguageRespected="False"/>
        </Grid>

    Depending on IE version it may silently reload the page or show a message (crash in ntdll.dll - see attached pics)

    I believe that you can't reproduce the issue because of your environment. Please try on a clean WinXP (non-English) with IE8, latest Silverlight (at 21.05.13, I even installed Developer version on the test box), .NET 4.
  11. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 21 May 2013 Link to this post

    Hello Pavel,

    Thank you a lot for the additional information. I have logged the bug in our Public Issue Tracking System where you can follow the progress of the issue. Again thanks to all of you for the cooperation. 

    Regards,
    Maya
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  12. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 06 Jun 2013 Link to this post

    Hi guys,

    I believe I managed to resolve the issue. The fix will be available with the upcoming official release - Q2 2013. Please give a try and let me know in case you still have any troubles.
    Thanks to all of you for the cooperation. 

    Regards,
    Maya
    Telerik

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  13. Pavel
    Pavel avatar
    18 posts
    Member since:
    Nov 2011

    Posted 06 Jun 2013 Link to this post

    Great news, thank you! When is it  going to be available?
  14. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 06 Jun 2013 Link to this post

    Hello,

    The release is scheduled for the next week on 12 June.
     

    Regards,
    Maya
    Telerik

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  15. Pavel
    Pavel avatar
    18 posts
    Member since:
    Nov 2011

    Posted 13 Jun 2013 Link to this post

    Seems that fix is working fine! Thank you, Maya!
  16. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 13 Jun 2013 Link to this post

    Hello Pavel,

    I am really happy to see that the issue is not reproducible on your side any more. Please let me know in case you need any further assistance. 

    Regards,
    Maya
    Telerik

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top