Why i am getting the parser error using the language resourcses

  1. #1

    Why i am getting the parser error using the language resourcses

    Server Error in '/' Application.

    Parser Error

    Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

    Parser Error Message: The resource object with key 'txtFirstName.FieldLabel' was not found.


    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="testresourcework.aspx.cs" Inherits="DRMSApplication.testresourcework"%>
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title></title>
    </head>
    <body>
        <ext:ResourceManager ID="ResourceManager1" runat="server" />
        <ext:FormPanel 
            ID="Panel1" 
            runat="server" 
            Height="185" 
            Width="350" 
            Padding="5">
            <Items>
                <ext:TextField 
                    ID="txtFirstName" 
                    runat="server" 
                    FieldLabel="<%$ Resources: txtFirstName.FieldLabel %>"
                    AnchorHorizontal="100%"
                    />
                <ext:TextField 
                    ID="txtLastName" 
                    runat="server" 
                   FieldLabel="<%$ Resources: txtLastName.FieldLabel %>" 
                    AnchorHorizontal="100%"
                    />
            </Items>
        </ext:FormPanel>
    </body>
    </html>
    I created the resource file in App_LocalResources folder as Resources.resx

    <data name="txtFirstName.FieldLabel" xml:space="preserve">
        <value>First Name</value>
      </data>
      <data name="txtLastName.FieldLabel" xml:space="preserve">
        <value>LastName</value>
      </data>

  2. #2
    Hi NishaLijo,

    This topic has been discussed in the following threads, maybe they can help solve the problem:

    http://forums.ext.net/showthread.php...ll=1#post37445

    http://forums.ext.net/showthread.php...ll=1#post27217

    http://forums.ext.net/showthread.php...ull=1#post3616
    Geoffrey McGill
    Founder
  3. #3

    Why i am getting the parser error using the language resourcses

    Still i am getting the same error.I followed the examples.

    Server Error in '/' Application.

    Parser Error

    Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

    Parser Error Message: The resource object with key 'ComboBox.EmptyText' was not found.

    Source Error:

    Line 11: <form id="form1" runat="server">
    Line 12: <ext:ResourceManager runat="server" />
    Line 13: <ext:ComboBox runat="server" EmptyText="<%$ Resources: ComboBox.EmptyText %>"/>
    Line 14: </form>
    Line 15: </body>
    Source File: /Default.aspx Line: 13

    Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053



    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" UICulture="es" %>
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
         <ext:ResourceManager  runat="server" />
            <ext:ComboBox runat="server" EmptyText="<%$ Resources: ComboBox.EmptyText %>"/>
        </form>
    </body>
    </html>

    I used the resource file in App_LocalResources folder as Test.aspx and Test.aspx.es
    <data name="ComboBox.EmptyText" xml:space="preserve">
        <value>Español</value>
      </data>
    Last edited by NishaLijo; Sep 15, 2010 at 8:42 AM.

Similar Threads

  1. Replies: 1
    Last Post: Jun 29, 2011, 3:00 AM
  2. Multi-language with Ext.Net
    By csharpdev in forum Examples and Extras
    Replies: 3
    Last Post: Jun 09, 2011, 8:09 AM
  3. [CLOSED] There is wrong with parser
    By thchuong in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 20, 2011, 12:32 PM
  4. Multiple language
    By huynd in forum 1.x Help
    Replies: 1
    Last Post: Jul 26, 2010, 3:48 AM
  5. Multi Language
    By phamtuananh20052006 in forum 1.x Help
    Replies: 2
    Last Post: Jun 01, 2009, 10:44 PM

Posting Permissions