G
Guest
6/23/05
..NET Development\Framework\dotnet.framework.aspnet
Visual Studio 2005 Beta 2 project cannot work in IIS virtual directory
I used Visual Studio 2005 Beta 2 to build a simple new web site.
Default.aspx file is like following.
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb"
Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.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.vb is like following.
Partial Class _Default
Inherits System.Web.UI.Page
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Response.Redirect("http://www.microsoft.com/")
End Sub
End Class
When I run the Visual Studio 2005 Beta 2, it works fine under studio testing
port. However, when I make an IIS virtual directory to run the default.aspx
under IIS, it gives me following error.
Configuration Error
Description: An error occurred during the processing of a configuration file
required to service this request. Please review the specific error details
below and modify your configuration file appropriately.
Parser Error Message: Unrecognized attribute 'xmlns'.
Source Error:
Line 8: \Windows\Microsoft.Net\Framework\v2.x\Config
Line 9: -->
Line 10: <configuration
xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
Line 11: <appSettings/>
Line 12: <connectionStrings/>
Source File: C:\jzhang\D_folder\document\ctqp-website\web.config Line: 10
________________________________________
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET
Version:1.1.4322.2032
Then I simple removed xmlns entry, then I got an error that the program
could not locate the _Default class under Default.aspx.vb file.Please help.
..NET Development\Framework\dotnet.framework.aspnet
Visual Studio 2005 Beta 2 project cannot work in IIS virtual directory
I used Visual Studio 2005 Beta 2 to build a simple new web site.
Default.aspx file is like following.
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb"
Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.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.vb is like following.
Partial Class _Default
Inherits System.Web.UI.Page
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Response.Redirect("http://www.microsoft.com/")
End Sub
End Class
When I run the Visual Studio 2005 Beta 2, it works fine under studio testing
port. However, when I make an IIS virtual directory to run the default.aspx
under IIS, it gives me following error.
Configuration Error
Description: An error occurred during the processing of a configuration file
required to service this request. Please review the specific error details
below and modify your configuration file appropriately.
Parser Error Message: Unrecognized attribute 'xmlns'.
Source Error:
Line 8: \Windows\Microsoft.Net\Framework\v2.x\Config
Line 9: -->
Line 10: <configuration
xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
Line 11: <appSettings/>
Line 12: <connectionStrings/>
Source File: C:\jzhang\D_folder\document\ctqp-website\web.config Line: 10
________________________________________
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET
Version:1.1.4322.2032
Then I simple removed xmlns entry, then I got an error that the program
could not locate the _Default class under Default.aspx.vb file.Please help.