473,401 Members | 2,146 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

Can't open asp xml page

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)
{

}
}
Jan 12 '06 #1
4 1890
Did you configure your IIS ???
are you using http://localhost/mysite ???

Jan 12 '06 #2
I configured IIS.

http://localhost designates c:\inetpub\wwwroot
default.aspx is in virtual directory named myAsp.

So http://localhost/myAsp/Default.aspx is the right file.

I tried to move Default.aspx to wwwroot and the result shows same
thing(http://localhost/Default.aspx).

When I surf http://localhost, IE shows me default asp file correctly(it
is named iisstart.asp).

So I think the IIS works properly.

Any idea?

Henrique Mello wrote:
Did you configure your IIS ???
are you using http://localhost/mysite ???

Jan 13 '06 #3
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

On Fri, 13 Jan 2006 08:00:27 +0900, Eddie <ed******@gmail.com> wrote:
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)
{

}
}

Jan 13 '06 #4
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

"DavidG" <da****@nospam.nospam> wrote in message
news:hc********************************@4ax.com...
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

On Fri, 13 Jan 2006 08:00:27 +0900, Eddie <ed******@gmail.com> wrote:
Hello, there.

I'm just a newbie for ASP.

I made a webpage with VS2005. The page contains nothing. It's a default pagewhen 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)
{

}
}

Feb 12 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: net | last post by:
I know how to make a page open itself at a certain size and location - I use: <html> <head><script language="Javascript"> window.resizeTo(370,220); window.moveTo(10,10); </script> <meta...
0
by: Sven Groot | last post by:
Using Outlook 2002 NL with all updates installed. I'm trying to open a backup pst file I have on CD. I have copied the file to my harddrive, made sure it's not read-only, am logged in as...
4
by: Dan Cruz | last post by:
Below are two files: Main.asp and Help.asp. I've stripped it down to the 'barest-of bones' so that anyone willing to help can duplicate the problem on their own systems. ***Main.asp*** looks...
26
by: Don | last post by:
I'm writing an html page with some JavaScript that reads a web page into a client-side temp file, then reformats it, then submits that same file as a URL to the browser for display, via...
46
by: Steve | last post by:
Access97 Database The database is split into a frontend and backend and not connected to any other database. The database has an unbound report with 15 subreports. Some of the subreports include...
2
by: dennist685 | last post by:
Can't open Northwind I remembered doing walkthrough using Northwind. However it wasn't an http project but a file project using the development server. Northwind allowed me to add, edit and...
6
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of...
11
by: Dave | last post by:
For some reason, the below lines only work on select machines. All machines are running IE6. IE SP's and OS's vary. When it doesn't work, default.aspx (the page that this code is in) opens and...
13
by: Bob Jones | last post by:
Here is my situation: I have an aspx file stored in a resource file. All of the C# code is written inline via <script runat="server"tags. Let's call this page B. I also have page A that contains...
2
by: rynato | last post by:
I have a form which the user fills out to enter some data. If there already exists an uncompleted session - say, the user started entering some data but had to stop to do something else - the...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.