Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trying to get VS 2003 working with IIS6 & .Net ERROR 2

  • Thread starter Thread starter member 141630
  • Start date Start date
Status
Not open for further replies.
M

member 141630

Guest
Hi,
I've got an IIS6 machine with anonymous authentication and a client running VS 2003.
All I'm trying to do is to get a basic set up working, and then I'll be fine. But can't get it to work...
Static html parses fine.

The web server is running .NET 2
I've got Frontpage extensions running OK, as I can upload from VS 2003 to IIS no problem.
However, when I try to run a basic bit of code it produces an error. The code generated by VS 2003 is shown below.

The error is this:
'Server Error in '/' Application.
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: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.

Source Error:

Line 37: by Microsoft that offers a single logon and core profile services for member sites.
Line 38: -->
Line 39: <authentication mode="Windows" />
Line 40:
Line 41:
Source File: D:\ Line: 39
Show Additional Configuration Errors:
It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. (D:\ line 72)
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
_________________________________________________


MY BIT OF CODE

<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="WebApplication1.WebForm1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>WebForm1</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name=vs_defaultClientScript content="JavaScript">
<meta name=vs_targetSchema content=" </head>
<body MS_POSITIONING="GridLayout">

<form id="Form1" method="post" runat="server">

</form>

</body>
</html>
 
This error can be caused by a virtual directory not being configured as an application in IIS
Could that be the problem?


____________________________________________________________
Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]

Need help finding an answer? Try the Search Facility or read FAQ222-2244.
 
open the properties of the virtual directory. on the first tab is a button to make the directory an application.
click it. restart IIS. view webpage.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
>> The web server is running .NET 2

Make sure they are not on 1.1

If they are go to the ASP.NET tab and switch it from 2.0 to 1.1 provided 1.1 is there.

____________ signature below ______________
You may get help by means of code here. Just recall what happens to a rat when he eats the cheese off a rat trap while you're Ctrl+C/Ctrl+V'ing that code as your own

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top