VS 2005 web site web.config rejected by IIS as badly formed. "Child Nodes not allowed" error given.

E

Eric

I created a simple web site in VS 2005 and then copied it underneath the IIS
tree and created a virtual directory for it. When I try to access the
default.aspx page I get the below error text:

Note that this is the default web.config file generated by the application.
The OS is Windows Server 2003, released version of VS 2005, created an
Asp.Net file system web site that does not do anything special and deployed
it to test.


Server Error in '/Metrics2' 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: Child nodes are not allowed.

Source Error:

Line 25: <compilation debug="true" strict="false" explicit="true"/>
Line 26: <pages>
Line 27: <namespaces>
Line 28: <clear/>
Line 29: <add namespace="System"/>

Source File: C:\Inetpub\wwwroot\Metrics2\web.config Line: 27
 
K

Karl Seguin

Your IIS is configured to run under ASP.Net 1.1...look at the bottom of the
error message:
Version Information: Microsoft .NET Framework Version:1.1.4322.2300; ASP.NET
Version:1.1.4322.2300

There should be a tab in your IIS which lets you switch versions.

Karl
 

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

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top