Visual Studio 2005 Beta 2 project cannot work in IIS virtual direc

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.
 
J

Juan T. Llibre

You're trying to run an ASP.NET 2.0 app in a virtual directory
which has been configured for ASP.NET 1.1.

Use the ASP.NET tab in the IIS MMC to change
the ASP.NET version of your application to ASP.NET 2.0.




Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================
 
G

Guest

Hello

I have the same problem but can only find ASP.net version 1 on my server.
How do I get ASP.net version 2? I have searched for it on microsoft but
cannot tell what exactly i have to install as it seems like the developer
programs.

Many thanks

James
 
G

Guest

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

Top