Unable to serve aspx (ASP.NET) pages

edufray

New Member
Messages
1
Reaction score
0
Points
0
Heya.

I've been following a variety of asp.net tutorials (including the w3c ones), and have uploaded a set of test .aspx pages to my site at:

A quick test XHTML page works, but no .aspx page will work (even if only by changing the extension). I'm comfortable with VB.NET, but this is my first foray into ASP.NET on a live site.

Here's one example (http://edufray.x10hosting.com/xmllooper.aspx)
Code:
<%@ Import Namespace="System.Data" %> 
 
<script runat="server"> 
sub Page_Load 
if Not Page.IsPostBack then 
  dim mycdcatalog=New DataSet 
  mycdcatalog.ReadXml(MapPath("cdcatalog.xml")) 
  cdcatalog.DataSource=mycdcatalog 
  cdcatalog.DataBind() 
end if 
end sub 
</script> 
 
<html> 
<body> 
 
<form runat="server"> 
<asp:Repeater id="cdcatalog" runat="server"> 
 
<HeaderTemplate> 
<table border="1" width="100%"> 
<tr> 
<th>Title</th> 
<th>Artist</th> 
<th>Country</th> 
<th>Company</th> 
<th>Price</th> 
<th>Year</th> 
</tr> 
</HeaderTemplate> 
 
<ItemTemplate> 
<tr> 
<td><%#Container.DataItem("title")%></td> 
<td><%#Container.DataItem("artist")%></td> 
<td><%#Container.DataItem("country")%></td> 
<td><%#Container.DataItem("company")%></td> 
<td><%#Container.DataItem("price")%></td> 
<td><%#Container.DataItem("year")%></td> 
</tr> 
</ItemTemplate> 
 
<FooterTemplate> 
</table> 
</FooterTemplate> 
 
</asp:Repeater> 
</form> 
 
</body> 
</html>

Are there any cPanel settings I need to adjust? I'm fairly sure it's not the pages, as in the source I'm getting blank pages - plus these pages work fine locally.

Apologies if I've missed anything mentioned in a FAQ, but the links in this forum FAQ are dead http://forums.x10hosting.com/programming-help/61745-please-read.html

Thanks for reading!
 

Twinkie

Banned
Messages
1,389
Reaction score
12
Points
0
LMSTFY?? Where is it when you need it :biggrin:

Sorry for the lack of quick responses, but this is the most commonly asked question on this forum. Please search feature to find out how to set up ASP.NET for your account :)
 
Top