Can't seem to get asp.net 2.0 to work. Followed the tutorial @ http://x10hosting.com/forums/tutorials/102062-how-get-asp-net-work-x10hosting.html.
Parameters:
Domain:alphasiteone.x10hosting.com
Problem: Following works localhost ok, doesn't work when posted via ftp to the /public_html folder. Specifically, doesn't work as receive the following firefox xml parsing error:
XML Parsing Error: no element found
Location: http://alphasiteone.x10hosting.com/Default2.aspx
Line Number 1, Column 1:
----------------------------------------------------------------------------------------------------------------
Actions:
Created and uploaded a couple of simple test files, following the tutorial.
Files:
Created and uploaded a web.config:
----------------------------------------------------------------------------------------------------------------
<?xml version="1.0"?>
<configuration>
<appSettings/>
<connectionStrings/>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
----------------------------------------------------------------------------------------------------------------
Created and uploaded: Default2.aspx
----------------------------------------------------------------------------------------------------------------
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>
<!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">
<div>
<asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click"></asp:Button>
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
</div>
</form>
</body>
</html>
----------------------------------------------------------------------------------------------------------------
Created and uploaded: Default2.aspx.cs:
----------------------------------------------------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class Default2 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
this.Label1.Text = "Label - unclicked";
}
Response.ContentType = "text/HTML";
}
protected void Button1_Click(object sender, EventArgs e)
{
this.Label1.Text = "Asp.Net post test worked.";
}
}
A raw html file I posted works properly via GET requests.
Please advise what more information I can provide that is relevant toward solving this issue. I'm glad to bring this to your attention if you're unaware as more sites than alphasiteone may be affected.
Thank you for your time and effort.
Parameters:
Domain:alphasiteone.x10hosting.com
Problem: Following works localhost ok, doesn't work when posted via ftp to the /public_html folder. Specifically, doesn't work as receive the following firefox xml parsing error:
XML Parsing Error: no element found
Location: http://alphasiteone.x10hosting.com/Default2.aspx
Line Number 1, Column 1:
----------------------------------------------------------------------------------------------------------------
Actions:
Created and uploaded a couple of simple test files, following the tutorial.
Files:
Created and uploaded a web.config:
----------------------------------------------------------------------------------------------------------------
<?xml version="1.0"?>
<configuration>
<appSettings/>
<connectionStrings/>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
----------------------------------------------------------------------------------------------------------------
Created and uploaded: Default2.aspx
----------------------------------------------------------------------------------------------------------------
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>
<!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">
<div>
<asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click"></asp:Button>
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
</div>
</form>
</body>
</html>
----------------------------------------------------------------------------------------------------------------
Created and uploaded: Default2.aspx.cs:
----------------------------------------------------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class Default2 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
this.Label1.Text = "Label - unclicked";
}
Response.ContentType = "text/HTML";
}
protected void Button1_Click(object sender, EventArgs e)
{
this.Label1.Text = "Asp.Net post test worked.";
}
}
A raw html file I posted works properly via GET requests.
Please advise what more information I can provide that is relevant toward solving this issue. I'm glad to bring this to your attention if you're unaware as more sites than alphasiteone may be affected.
Thank you for your time and effort.