Home All Groups Group Topic Archive Search About
Author
12 Jan 2006 11:00 PM
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)
    {

    }
}

Author
12 Jan 2006 11:25 PM
Henrique Mello
Did you configure your IIS ???
are you using http://localhost/mysite ???
Are all your drivers up to date? click for free checkup

Author
13 Jan 2006 12:03 AM
Eddie
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:
Show quoteHide quote
> Did you configure your IIS ???
> are you using http://localhost/mysite ???
>
Author
13 Jan 2006 10:02 AM
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

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

Show quoteHide quote
>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)
>    {
>
>    }
>}
Author
12 Feb 2006 5:33 AM
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

Show quoteHide quote
"DavidG" <davidg@nospam.nospam> wrote in message
news:hcues19r6ek2232eknrc6a02tt3bc63dao@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 <eddie***@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)
> >    {
> >
> >    }
> >}

Bookmark and Share