.Net 2.0 - The XML page cannot be displayed.

Symptom:
You are getting the following error message:

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.


A name was started with an invalid character. Error processing resource 'http://localhost/xxx.aspx. Line 1, ...

<%@ Page Language="VB" ..... Title="Home Page" %>

Description:
This is mostly due to incomplete registration of the new .NET framework installation. but why such an irrelevant error message? Errr... don't ask :p

Resolution:
a) Re-register the .NET framework, similar to this KB.
306005 How to repair IIS mapping after you remove and reinstall IIS
Just ensure you are in the correct 'version' folder...then execute the following command.
"%windir%\Microsoft.NET\Framework\version\aspnet_regiis.exe" -i

b) There are few instances that Step a) may not complete solve the problem. Hence, what you can try next is to reinstall the .NET Framework package via Control Panel - Add or Remove Programs.

Published Thu, Mar 30 2006 15:42 by qbernard
Filed under:

Comments

# Tuan Pham said on 07 October, 2006 02:16 PM
Thanks
# Laila said on 26 January, 2007 05:45 PM

I have a website, when I try to upload aspx pages that made using master page, this error msg displayed:(

# qbernard said on 27 January, 2007 07:51 AM

And have you try the suggestion above? still experiencing same error?

News

Search

Go

This Blog

Tags

Archives

IIS Sites

MVPs - MVPs

IIS Related

Syndication