473,395 Members | 1,956 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

cannot load http://localhost/default.aspx

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>
Jun 2 '06 #1
11 12910
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.

scott wrote:
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>

Jun 2 '06 #2
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/en...netversion.asp

--
Gregory A. Beamer

*************************************************
Think Outside the Box!
*************************************************
"scott" <ai************@yahoo.com> wrote in message
news:OT**************@TK2MSFTNGP05.phx.gbl...
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>

Jun 2 '06 #3
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.


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"scott" <ai************@yahoo.com> wrote in message news:OT**************@TK2MSFTNGP05.phx.gbl... 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>

Jun 2 '06 #4
Set up a separate application pool for 2.0.
i setup a new APP pool but cant seem to find the place to tell it to support
2.0

Make sure that the app in question is set to run 2.0.
how ?

Move it to the new application pool that is set for 2.0.

how ?
thanks for any help
Scott
Jun 2 '06 #5
done that already, previous post suggests

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

is this right ?
Jun 2 '06 #6
done that already, previous post suggests

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

is this right ?
Jun 2 '06 #7
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">


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"scott" <ai************@yahoo.com> wrote in message news:OG**************@TK2MSFTNGP02.phx.gbl...
done that already, previous post suggests

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

is this right ?


Jun 2 '06 #8
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.


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"scott" <ai************@yahoo.com> wrote in message news:OG**************@TK2MSFTNGP02.phx.gbl...
done that already, previous post suggests

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

is this right ?

Jun 2 '06 #9
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">


i wouldnt know where to find the "<configuration...> section header " even
if i did want to change it sorry.
Jun 2 '06 #10
> 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.
Jun 2 '06 #11
re:
i wouldnt know where to find the "<configuration...> section header " even
In the web.config of your application, of course.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"scott" <ai************@yahoo.com> wrote in message news:On**************@TK2MSFTNGP04.phx.gbl...
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">


i wouldnt know where to find the "<configuration...> section header " even if i did want to change
it sorry.

Jun 2 '06 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: jim.frantzen | last post by:
You have an active XMLHTTP request on the main page (localhost/App1/index.aspx) The XMLHTTP request takes about 60 seconds to receive a response back from localhost/App1/getxml.aspx. You have an...
9
by: Bob Jones | last post by:
We have developed a commercial ASP.net application (personal nutrition management and tracking); we want to send smtp email from within it. For our development box, we use WinXP Pro, IIS 5.5,...
1
by: aben | last post by:
Hello all, I am using the following microsoft article to try and learn more about SSL: http://support.microsoft.com/default.aspx?scid=kb;EN-US;315588 I have a virtual directory that I have...
0
by: Sinisa Ruzin | last post by:
Hi all, I had problem with dynamically adding/removing controls;ascx, Controls.Add(Page.LoadControl... in the same page of the IBuySpy portal. ASP.NET, C#. I added buttons to the main ASCX loaded...
4
by: Daniel Sitima | last post by:
I cannot to create project in Windows Server 2003 with Visual Studio .NET 2003; The error returned was: The default Web access mode for this project is set to file share, but the project...
4
by: naveed | last post by:
I have the simple Hello World web service running in debug mode on my development machine (XP Pro SP2). I'm using VS2005. I'm able to access it from my machine. When I try to access it from...
0
by: M | last post by:
I installed the Visual Basic .NET Resource Kit. When I click 'Visual Basic .NET Resource Kit' the page at 'http://localhost/VB.NETResourceKit/Welcome.aspx' show: Server Error in...
1
by: webonomic | last post by:
A number of topics ask how to solve the "Cannot use a leading .. to exit above the top directory" error. I am having the same problem with an asp.net 2.0 website. The site works fine on...
1
by: Dhruba Bandopadhyay | last post by:
Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.