Resolved: [2005] The XML page cannot be displayed
I am getting the following error on a simple project/site (it only has a master page, default.aspx, some classes and a stylesheet). The error only occurs if I browse to the default.aspx page directly. Using //localhost/testsite works fine. When running within the IDE and with the project's Start Page set to default.aspx the error occurs otherwise it works fine as well. Other projects/sites don't have this problem.
I compared the IIS settings of two virtual directories and everything seems to be in order. The ASP.NET tab is the same for both.
Running aspnet_regiis -u and then aspnet_regiis -i did not work.
Quote:
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/TestSite/Default.aspx'. Line ...
<%@ Page Language="VB" MasterPageFile="~/wss10000.master" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_D...
Re: [2005] The XML page cannot be displayed
In IIS, in the virtual directories properties, look at "Configuration...". Has .aspx been mapped to the ASP.NET ISAPI DLL?
Re: [2005] The XML page cannot be displayed
Quote:
Has .aspx been mapped to the ASP.NET ISAPI DLL?
IIS, .Net is setup just fine. The problem was just this one project.
I tried several things before I finally just deleted the Master and the Default.Aspx pages but surprisingly I got the same error! This led me to think there was a caching issue. Sure enough deleting the temporary internet files solved the problem.
Re: Resolved: [2005] The XML page cannot be displayed
I was going to mention that. No, really...
And to make my post seem slightly helpful, I'll also add that I usually turn indexing services off on my machine since it's not something that goes well with the Temporary ASP.NET fold.er