Can't open asp xml page

E

Eddie

Hello, there.

I'm just a newbie for ASP.

I made a webpage with VS2005. The page contains nothing. It's a default page
when I created webpage in the VS2005.

IE shows me error message that he can't open xml page.

I don't know what is the problem.

I hope you guys help a newbie.
Thanks in advance.

Eddie

============= Error message =================================

he 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/myAsp/Default.aspx'. Line 1, Pos...

<%@ Page Language="C#" AutoEventWireup="true"
CodeFile="Default.aspx.cs" Inherits="_Default" %>
-^

================ Default.aspx =================================

<%@ Page Language="C#" AutoEventWireup="true"
CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>

</div>
</form>
</body>
</html>

================ Default.aspx.cs ============================

using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{

}
}
 
D

DavidG

Is this an ASP.NET 2.0 webpage?

If so you *might* need to run through some config steps to enable aspx
in IIS, because I had to do the following:

1) Register asp.net with IIS (aspnet_regiis.exe)
2) In IIS mmc make sure aspx 2.0 is enabled

The above is covered in the online help or MSDN
 
D

dean4if

Hi DavidG,

How does one make sure aspx 2.0 is enabled in IIS mmc?

I have a couple Windows 2000 Servers. The ones that do not have Visual
Studio 2005 installed show a tab for ASP.NET in the IIS MMC, but the only
server that has Visual Studio 2005 installed does not show this tab.

When I use Visual Studio 2005 to try and access a local IIS web, I get an
error saying Visual Studio 2005 does not support SharePoint webs.

Thanks for any help you can offer to get ASP.NET 2.0 working with my Visual
Studio 2005 installation.

Dean
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,154
Members
46,702
Latest member
LukasConde

Latest Threads

Top