[CLOSED] [1.0] Bug ResourceManager.RegisterLocale

  1. #1

    [CLOSED] [1.0] Bug ResourceManager.RegisterLocale

    I know it's very strange and uncommon, but we just received a user ticket for a null reference exception

    The problem is

    ResourceManager.RegisterLocale doesn't check if HttpContext.Current.Request.UserLanguages is null. And if the user (dont' ask me why...) doesn't have any language setted on its browser UserLanguages is null.

    To reproduce the bug just go to any browsers Internet Options and clear the preferred languages list.

    Last edited by Daniil; Jan 21, 2011 at 1:41 PM. Reason: [CLOSED]
  2. #2

    Hmm, I have tried what you said but the issue doesn't appear.

    I cleared all languages in IE8 and try the following code.

    <%@ Page Language="C#" %>
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Ext.Net Example</title>
        <form runat="server">
        <ext:ResourceManager runat="server" />
    Maybe some more details to reproduce?


    It needs also to set Locale="client" to reproduce.
    Last edited by Daniil; Jan 21, 2011 at 12:21 PM. Reason: Added note
  3. #3

    Fixed in SVN. Please update and retest
  4. #4
    Thank you for you super fast answer.

    Mark it as Fixed

    Thank you, Stefano

    P.S. As my collegue sayed: 'We have fixed Internet Explorer Gipsy mode' :D:

Similar Threads

  1. [CLOSED] Asp Substitution with Ext ResourceManager
    By SouthDeveloper in forum 1.x Legacy Premium Help
    Replies: 9
    Last Post: Nov 16, 2011, 4:23 PM
  2. Replies: 1
    Last Post: Sep 09, 2011, 3:00 PM
  3. [CLOSED] bug in ResourceManager.ApplicationName
    By pil0t in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 17, 2010, 3:09 PM
  4. [CLOSED] [1.0] AJAX and ResourceManager Help
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 30
    Last Post: Jan 23, 2010, 2:08 PM
  5. [CLOSED] [1.0] ResourceManager issue
    By randy85253 in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Oct 29, 2009, 11:45 AM

Posting Permissions