zhshqzyc
December 15th, 2006, 10:55 AM
Need Help
<1>. I just installed IIS 5.1.
<2>. Created a folder C:\wwwroot.
<3>. Copied all files in \Inetpub\wwwroot to C:\wwwroot.
<4>. Start IIS successfully.
<5>. Tried to create virtual directory.A wizard guided me through two entries and a set of options.
<6>. Virtual Directory Alias is "SimpleWebApplication".
<7>. Web Site Content Directory is C:\TestWeb.
<8>. Leave the last page as is and click Finish.
<9>.Edited a file test.asp, put it in C:\TestWeb.
<10>. Typed "http://localhost/SimpleWebApplication/test.aspx" into address bar.
<11> but. "The XML page cannot be displayed".
A name was started with an invalid character.Error processing
resource 'http://localhost/SimpleWebApplication/test.aspx'....
<% @page Language="C#"%>
_^
The following is the context of test.aspx
<% @page Language="C#"%>
<HTML>
<head>
<title>ASP.NET TEST</title>
</head>
<body>
<script language="C#" runat="server">
private void Page_load(object sender,System.EventArgs e)
{
Response.Write("<center>ASP.NET TEST</center>");
}
</script>
</body>
</HTML>
Thank you in advance!
<1>. I just installed IIS 5.1.
<2>. Created a folder C:\wwwroot.
<3>. Copied all files in \Inetpub\wwwroot to C:\wwwroot.
<4>. Start IIS successfully.
<5>. Tried to create virtual directory.A wizard guided me through two entries and a set of options.
<6>. Virtual Directory Alias is "SimpleWebApplication".
<7>. Web Site Content Directory is C:\TestWeb.
<8>. Leave the last page as is and click Finish.
<9>.Edited a file test.asp, put it in C:\TestWeb.
<10>. Typed "http://localhost/SimpleWebApplication/test.aspx" into address bar.
<11> but. "The XML page cannot be displayed".
A name was started with an invalid character.Error processing
resource 'http://localhost/SimpleWebApplication/test.aspx'....
<% @page Language="C#"%>
_^
The following is the context of test.aspx
<% @page Language="C#"%>
<HTML>
<head>
<title>ASP.NET TEST</title>
</head>
<body>
<script language="C#" runat="server">
private void Page_load(object sender,System.EventArgs e)
{
Response.Write("<center>ASP.NET TEST</center>");
}
</script>
</body>
</HTML>
Thank you in advance!