cannot load http://localhost/default.aspx

S

scott

Hi,

From IIS6 and from a session on the 2003 server i attempt to browse to
http://localhost/default.aspx and get the following 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 configuration section 'connectionStrings'

Source Error:


Line 10: <configuration>
Line 11: <appSettings/>
Line 12: <connectionStrings/>
Line 13: <system.web>
Line 14: <!--


Source File: c:\inetpub\wwwroot\web.config Line: 12



--------------------------------------------------------------------------------

Version Information: Microsoft .NET Framework Version:1.1.4322.2300; ASP.NET
Version:1.1.4322.2300


I tried changing ASP.NET version via Default Web Sites, Properties, ASP.NET
tab and switching to version 2.#. After this change and running IISRESET i
now get page not found when i attempt to browse to
http://localhost/default.aspx.

Can anyone help ?

NOTE:
default.aspx resides in c:\inetpub\wwwroot
i can see IISTART.html no problem
i have admin righths


Thanks
Scott



NOTE: default.aspx contains:


<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb"
Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
testing</div>
</form>
</body>
</html>
 
R

Ray Booysen

Looks like the application is written in .net 2.0 while IIS thinks that
the application is 1.1. If you view the properties tab for the virtual
directory you will be able to change the version in the asp.net tab.
 
C

Cowboy \(Gregory A. Beamer\)

Set up a separate application pool for 2.0.
Make sure that the app in question is set to run 2.0.
Move it to the new application pool that is set for 2.0.

Most likely, you have the app set for one version and placed in an app pool
for a different version.

NOTE: Best method to purpose a single app to a specific version of the
framework is aspnet_regiis with an -s flag. See
http://msdn.microsoft.com/library/e...figuringaspnetapplicationforaspnetversion.asp

--
Gregory A. Beamer

*************************************************
Think Outside the Box!
*************************************************
 
J

Juan T. Llibre

re:
Parser Error Message: Unrecognized configuration section 'connectionStrings'

You are trying to run an ASP.NET 1.1 app with web.config settings
which are only valid for ASP.NET 2.0.

Use the "ASP.NET" tab in the IIS Manager to configure that app so it targets ASP.NET 2.0.
 
S

scott

done that already, previous post suggests

default website, properties, asp.net tab, asp.net version changed to 2.#
then IISRESET.

is this right ?
 
S

scott

done that already, previous post suggests

default website, properties, asp.net tab, asp.net version changed to 2.#
then IISRESET.

is this right ?
 
J

Juan T. Llibre

Yes, that is right.

The error message, however, is quite specific :
"Unrecognized configuration section 'connectionStrings' "

That is the error message sent when a 2.0 app is being targeted to 1.1.

Have you changed the <configuration...> section header ?

It should be :
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
 
J

Juan T. Llibre

One more thing.

Did you do that for the "Default Web Site",
or for the *specific* application which is throwing the error?

Unless you're developing in the root application,
you need to do that for the specific application which is returning the error.
 
S

scott

Did you do that for the "Default Web Site",
or for the *specific* application which is throwing the error?

i changed the default website to 2.0 , could not find anywhere else to
change to 2.0 to be honest.
Unless you're developing in the root application,
you need to do that for the specific application which is returning the
error.

i will try creating a new app quickly in visual studio 2005 - maybe its a
problem in the setup in the code.
 

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

Forum statistics

Threads
473,968
Messages
2,570,152
Members
46,698
Latest member
LydiaHalle

Latest Threads

Top