XML Parsing Error: no element found Location

kbjradmin

New Member
Messages
512
Reaction score
2
Points
0
i don't know a lot about aspx (therefore, please correct anything wrong that i say), from what i've gathered by searching around, your error seems to mean that your document is empty, usually resulting from some sort of exception being thrown before any output can be made. however, without being able to see the code, it would be difficult to tell where that error is coming from. therefore, please post the code causing the error, so those who know a little more about the topic than me can actually be somewhat helpful. :)
 

rodgero

New Member
Messages
3
Reaction score
0
Points
0
I'm also getting this error on my asp pages, such as http://loyalty.r-oates.x10.mx/Default.aspx

I'm including the markup below to show that there obviously should be an element found.

Regards

Rodger

<%@ Page Language="C#" Inherits="LoyaltyCard.Web.Default" MasterPageFile="~/Templates/LoyaltyCard.Master" %>
<asp:Content ContentPlaceHolderID="MainContent" runat="server">
<h2 class="bluebackground">Welcome</h2>
<div class="info">
<div class="picturebox" style="float: right; padding: 10px;">
<img src="Content/Images/UOGLogo.gif" alt="UoG Logo" />
</div>
<p>
Welcome to the University Of Gloucestershire Loyalty Card management system, UniLoyal. Here you can administer
your loyalty card and manage your loyalty points.
</p>

This includes tasks such as:
<ul class="arrows">
<li>Viewing your purchase history</li>
<li>Viewing your current points</li>
<li>Requesting a replacement card</li>
<li>Updating your details</li>
</ul>

<p>
Registration is free and once you've registered, your Loyalty Card will be posted to
you. <a href="/Users/Register.aspx">Register now</a> to start collecting!
</p>
</div>

<div style="clear: both"></div>

<h2 class="bluebackground">Your loyalty card</h2>
<div class="info">
<div class="picturebox" style="float: right; padding: 10px;">

</div>

<p>
Your loyalty card entitles you to a range of discounts, at a range of locations around the University
of Gloucestershire campuses.
</p>

This includes:
<ul class="arrows">
<li>Park bar</li>
<li>Park shop</li>
<li>FCH bar</li>
<li>Pitville bar</li>
<li>Pitville shop</li>
</ul>

<p>
For every pound you spend, you earn 2 points, this entitles you to free stuff when you've collected enough.
Some of the items you can buy are in the table to the right, but many more items also offer point rewards!
</p>
</div>
</asp:Content>
 

rodgero

New Member
Messages
3
Reaction score
0
Points
0
I'm also getting this error when I try to view my aspx pages. I'm including the markup for one of my pages to show that this document is certainly NOT empty

<%@ Page Language="C#" Inherits="LoyaltyCard.Web.Default" MasterPageFile="~/Templates/LoyaltyCard.Master" %>
<asp:Content ContentPlaceHolderID="MainContent" runat="server">
<h2 class="bluebackground">Welcome</h2>
<div class="info">
<div class="picturebox" style="float: right; padding: 10px;">
<img src="Content/Images/UOGLogo.gif" alt="UoG Logo" />
</div>
<p>
Welcome to the University Of Gloucestershire Loyalty Card management system, UniLoyal. Here you can administer
your loyalty card and manage your loyalty points.
</p>

This includes tasks such as:
<ul class="arrows">
<li>Viewing your purchase history</li>
<li>Viewing your current points</li>
<li>Requesting a replacement card</li>
<li>Updating your details</li>
</ul>

<p>
Registration is free and once you've registered, your Loyalty Card will be posted to
you. <a href="/Users/Register.aspx">Register now</a> to start collecting!
</p>
</div>

<div style="clear: both"></div>

<h2 class="bluebackground">Your loyalty card</h2>
<div class="info">
<div class="picturebox" style="float: right; padding: 10px;">

</div>

<p>
Your loyalty card entitles you to a range of discounts, at a range of locations around the University
of Gloucestershire campuses.
</p>

This includes:
<ul class="arrows">
<li>Park bar</li>
<li>Park shop</li>
<li>FCH bar</li>
<li>Pitville bar</li>
<li>Pitville shop</li>
</ul>

<p>
For every pound you spend, you earn 2 points, this entitles you to free stuff when you've collected enough.
Some of the items you can buy are in the table to the right, but many more items also offer point rewards!
</p>
</div>
</asp:Content>
 

xav0989

Community Public Relation
Community Support
Messages
4,467
Reaction score
95
Points
0
The error is created by the browser, because of the header sent by the server.
 

rodgero

New Member
Messages
3
Reaction score
0
Points
0
so what can I do to get things working?

btw I'm getting this error when trying to view the simple web.config and ver.aspx files in my root (as suggested in this thread)

<?xml version="1.0" ?>
<configuration>
<appSettings />
<connectionStrings />
<system.web>
<customErrors mode="Off" />
</system.web>
</configuration>
<configuration>
<system.web>
<compilation>
<assemblies>
<add assembly="MySql"/>
<add assembly="MySql.Data"/>
</assemblies>
</compilation>
</system.web>
</configuration>
 
Top