By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,678 Members | 1,904 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,678 IT Pros & Developers. It's quick & easy.

"The XML page cannot be displayed" Error

P: n/a
TC
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

Jun 27 '08 #1
Share this Question
Share on Google+
6 Replies


P: n/a
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" <ge**********@yahoo.comwrote in message
news:OD****************@TK2MSFTNGP06.phx.gbl...
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

Jun 27 '08 #2

P: n/a
TC
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" <da*****************@revilloc.REMOVETHIS.comwrot e in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
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" <ge**********@yahoo.comwrote in message
news:OD****************@TK2MSFTNGP06.phx.gbl...
>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


Jun 27 '08 #3

P: n/a
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" <ge**********@yahoo.comwrote in message news:%2****************@TK2MSFTNGP04.phx.gbl...
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" <da*****************@revilloc.REMOVETHIS.comwrot e in message news:%2****************@TK2MSFTNGP04.phx.gbl...
>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" <ge**********@yahoo.comwrote in message news:OD****************@TK2MSFTNGP06.phx.gbl...
>>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




Jun 27 '08 #4

P: n/a
TC
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" <no***********@nowhere.comwrote in message
news:uR**************@TK2MSFTNGP06.phx.gbl...
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" <ge**********@yahoo.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>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" <da*****************@revilloc.REMOVETHIS.comwrot e in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
>>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" <ge**********@yahoo.comwrote in message
news:OD****************@TK2MSFTNGP06.phx.gbl.. .
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






Jun 27 '08 #5

P: n/a
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" <ge**********@yahoo.comwrote in message news:%2***************@TK2MSFTNGP06.phx.gbl...
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" <no***********@nowhere.comwrote in message news:uR**************@TK2MSFTNGP06.phx.gbl...
>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" <ge**********@yahoo.comwrote in message news:%2****************@TK2MSFTNGP04.phx.gbl...
>>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" <da*****************@revilloc.REMOVETHIS.comwrot e in message
news:%2****************@TK2MSFTNGP04.phx.gbl.. .
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" <ge**********@yahoo.comwrote in message news:OD****************@TK2MSFTNGP06.phx.gbl...
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
>
>
>





Jun 27 '08 #6

P: n/a
TC
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" <no***********@nowhere.comwrote in message
news:%2***************@TK2MSFTNGP06.phx.gbl...
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" <ge**********@yahoo.comwrote in message
news:%2***************@TK2MSFTNGP06.phx.gbl...
>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" <no***********@nowhere.comwrote in message
news:uR**************@TK2MSFTNGP06.phx.gbl...
>>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" <ge**********@yahoo.comwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl.. .
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" <da*****************@revilloc.REMOVETHIS.comwrot e in message
news:%2****************@TK2MSFTNGP04.phx.gbl. ..
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" <ge**********@yahoo.comwrote in message
news:OD****************@TK2MSFTNGP06.phx.gbl.. .
>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
>>
>>
>>
>
>





Jun 27 '08 #7

This discussion thread is closed

Replies have been disabled for this discussion.