chrome frame causes postback to wrong url and a Server Error in '/' Application error

Posted by Johnny S on Stack Overflow See other posts from Stack Overflow or by Johnny S
Published on 2010-04-28T21:34:54Z Indexed on 2010/04/28 21:37 UTC
Read the original article Hit count: 215

I have a simple asp page with no code behind defined as:

<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!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">
    <meta http-equiv="X-UA-Compatible" content="chrome=1" />
    <title>test login</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Button runat="server" CommandName="test" Text="test" />
    </div>
    </form>
</body>
</html>

This is being hosted on an IIS server that ships with XP (looks like 5.1). If I have machine with native IE6 running chrome frame click the TEST button, I receive:

Server Error in '/' Application. The resource cannot be found. Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly. Requested URL: /Default.aspx

I have tried this test on an IIS 7 host and several other IE6 machines with the same result. What I have noticed is that it is trying to postback to the wrong URL. I have checked with fiddler and have seen it will start at hostname/test/default.aspx but when I click the button it is trying to post to hostname/default.aspx

Any help is greatly appreciated.

© Stack Overflow or respective owner

Related posts about url

Related posts about google-chrome-frame