BADRESPONSE: XML tag name mismatch (expected hr)

  1. #1

    BADRESPONSE: XML tag name mismatch (expected hr)

    Hi there,

    I am dealing with AjaxMethods.

    I am not sure how did i end up with this stiuation but,

    whenever I modify my .aspx file (even a letter), I have to kill aspnet_wp.exe from task manager or update webconfig file to reset session. If I dont do that, AjaxMethods gives me following errors

    on Firefox: BADRESPONSE: XML tag name mismatch (expected hr)
    on IE7: BADRESPONSE: Syntax error

    when i reset the IIS session, everything starts to work again without a problem.

    any suggestions ?

    thanks

  2. #2

    RE: BADRESPONSE: XML tag name mismatch (expected hr)

    Hi Emre,

    I think I ran into a similar problem once as well, but I can not seem to reproduce at the moment.

    Any chance you could modify your page down to a simple example demonstrating how to reproduce the exception?

    Geoffrey McGill
    Founder
  3. #3

    RE: BADRESPONSE: XML tag name mismatch (expected hr)

    Here's a simple AjaxMethod example that appears to work fine when you edit either the html or code within the GetMessage Method.

    Example

    <%@ Page Language="C#" %>
    
    <%@ Register assembly="Coolite.Ext.Web" namespace="Coolite.Ext.Web" tagprefix="ext" %>
    
    <script runat="server">
        [AjaxMethod]
        public void GetMessage(string text)
        {
            this.Label1.Text = text + " : " + DateTime.Now.ToLongTimeString();
        }
    </script>
    
    
    <!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>AjaxMethod</title>
    </head>
    <body>
        <p><a href="ValidateRequest.aspx">Reload</a></p>
        <form id="form1" runat="server">
            
            <ext:ScriptManager ID="ScriptManager1" runat="server" />
            
            <ext:TextField id="TextField1" runat="server" />
            
            <ext:Button
                ID="Button1" 
                runat="server" 
                Text="Get Message">
                <Listeners>
                    <Click Handler="Coolite.AjaxMethods.GetMessage(TextField1.getValue());" />
                </Listeners>
            </ext:Button>
            
            <ext:Label ID="Label1" runat="server" />
            
        </form>
    </body>
    </html>
    Geoffrey McGill
    Founder
  4. #4

    RE: BADRESPONSE: XML tag name mismatch (expected hr)

    Hi Geoffrey,

    I believe is not related with the .aspx at all. cause I simply copy/paste the code you sent.

    it was running till I change the aspx file (by adding few spaces before html tag).

    and it stopped working too.

    ---

    And now , I am not sure about the cause but problem solved.

    I was working with Revision 993. Minute ago I checked for updates and I saw Rev 995.

    I complete the update, and now It works fine. saw plenty of changes on rev 995, so I am not sure what cause the problem.

    but thanks a lot! it was like a nightmare :)

Similar Threads

  1. Replies: 0
    Last Post: Aug 01, 2012, 9:33 AM
  2. [CLOSED] BADRESPONSE: missing ) in parenthetical
    By gs_user in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 24, 2012, 10:49 AM
  3. Please help:BADRESPONSE: Expected ')'
    By tmducit in forum 1.x Help
    Replies: 1
    Last Post: Apr 12, 2012, 2:59 PM
  4. Replies: 3
    Last Post: Mar 14, 2012, 1:35 PM
  5. Store update ObjectDataSource params mismatch
    By Neil_Walters in forum 1.x Help
    Replies: 2
    Last Post: Mar 14, 2010, 10:11 PM

Posting Permissions