Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

"The XML page cannot be displayed" Error

0 views
Skip to first unread message

TC

unread,
May 2, 2008, 5:18:27 PM5/2/08
to
Hey All,

I'm receiving a weird error in IE now:

"The XML page cannot be displayed"

This is even with the simplest of pages that I previously could view.

Any ideas?

Thanks,

TC

David

unread,
May 2, 2008, 5:29:35 PM5/2/08
to
This usually happens if the XML is not correctly formatted.

--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available


"TC" <getmye...@yahoo.com> wrote in message
news:ODx%23YoJrI...@TK2MSFTNGP06.phx.gbl...

TC

unread,
May 2, 2008, 5:38:33 PM5/2/08
to
Hey Folks,

This is happening with files that I could open yesterday. I installed
dotNetNuke and NUnite. I do not know if this could be the culprit.

For example, considering the following file saved as "FirstPage.aspx":


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>My First ASP.NET 2.0</title>
<script runat="server" language="C#">
protected void Page_Load(object sender, EventArgs e)
{
timeLabel.Text=DateTime.Now.ToString();
}
</script>
</head>
<body>
<p>Hello there!</p>
<p>The time is now:
<asp:Label runat="server" id="timeLabel" />
</p>
</body>
</html>


This is the full error that I receive:

The XML page cannot be displayed

Cannot view XML input using XSL style sheet. Please correct the error and
then click the Refresh button, or try again later.


------------------------------------------------------------------------------

The operation completed successfully. Error processing resource
'file:///F:/Books Source Code/Creating Web Sites -- The Mis...

<html>

There is nothing wrong with the above simple file.

Please help!

Thanks,

Todd


"David" <david.col...@revilloc.REMOVETHIS.com> wrote in message
news:%239jipuJ...@TK2MSFTNGP04.phx.gbl...

Juan T. Llibre

unread,
May 2, 2008, 6:34:10 PM5/2/08
to
Check to see whether .aspx files are mapped to the IIS file mappings.

If not, from a command window in the .net Framework 2.0 directory, first run :

aspnet_regiis -u

and after that, run :

aspnet_regiis -i

Just running aspnet_regiis -i will not do it.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================
"TC" <getmye...@yahoo.com> wrote in message news:%230IPozJ...@TK2MSFTNGP04.phx.gbl...

TC

unread,
May 2, 2008, 6:58:54 PM5/2/08
to
Hey Juan,

Thanks for the reply. It appears to be have been a good suggestion.

However, .aspx extension shows up under all websites listed in IIS.

Should I try your suggestion anyway?

This is only failing for files stored locally. My .aspx located on the
virtual directories, all works fine.

Thanks,

Todd

"Juan T. Llibre" <nomail...@nowhere.com> wrote in message
news:uRP1mSKr...@TK2MSFTNGP06.phx.gbl...

Juan T. Llibre

unread,
May 2, 2008, 7:04:27 PM5/2/08
to
re:
!> This is only failing for files stored locally.
!> My .aspx located on the virtual directories, all works fine.

ASP.NET files must be executed from the root application
and/or virtual directories or their subdirectories.

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
======================================

"TC" <getmye...@yahoo.com> wrote in message news:%23GflhgK...@TK2MSFTNGP06.phx.gbl...

TC

unread,
May 2, 2008, 7:18:17 PM5/2/08
to
Hey Juan,

Yep! I now see my stupidity.

THANKS! for the help.

I've been bouncing back and forth between Notepad, IE, .html and .aspx
files. My .aspx WERE in my virtual directory and I'd been opening them via
localhost... when I copied a couple of these files elsewhere, I received the
errors.

Thanks Again.

-- Todd

"Juan T. Llibre" <nomail...@nowhere.com> wrote in message

news:%231XnhjK...@TK2MSFTNGP06.phx.gbl...

0 new messages