ASP.Net 2.0

Status
Not open for further replies.

prof321

New Member
Messages
1
Reaction score
0
Points
0
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.
 

zapzack

New Member
Messages
606
Reaction score
19
Points
0
You should probably post this in the tutorial topic, but I'll give my best shot to help. The tutorial directions say this:
Do not upload the web.config file
If you have a previous web.config file in your webspace; remove it (or them), as this may break the application

You said you uploaded a web.config. Try removing that and see if it solves your problem.
 
Last edited:
Status
Not open for further replies.
Top