无法加载http://localhost/default.aspx [英] cannot load http://localhost/default.aspx

查看:142
本文介绍了无法加载http://localhost/default.aspx的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




从IIS6和2003服务器上的会话中,我尝试浏览到
http://localhost/default.aspx 并收到以下错误:

描述:处理配置时出错文件

服务此请求所需。请查看下面的具体错误详细信息

并正确修改配置文件。


解析器错误消息:无法识别的配置部分''connectionStrings''


来源错误:

第10行:<配置>

第11行:< appSettings />

第12行:< connectionStrings />

第13行:< system.web>

第14行:<! -

源文件:c:\inetpub \wwwroot \web.config行:12


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


版本信息:Microsoft .NET Framework版本:1.1.4322.2300; ASP.NET

版本:1.1.4322.2300

我尝试通过默认网站,属性,ASP.NET更改ASP.NET版本

tab并切换到版本2.#。在此更改并运行IISRESET之后我现在在尝试浏览时找不到页面
http://localhost/default.aspx


有人可以帮忙吗?


注意:

default.aspx位于c:\inetpub \ www.root

i可以看到IISTART.html没问题

i有admin righths

谢谢

Scott


注意:default.aspx包含:

<%@ Page Language =" ; VB" AutoEventWireup = QUOT假QUOT; 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>

测试< / div>

< / form>

< / body>

< / html>

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>

推荐答案

看起来应用程序是用.net 2.0而IIS认为

应用程序是1.1。如果您查看虚拟

目录的属性选项卡,您将能够在asp.net选项卡中更改版本。


scott写道:
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:


从IIS6和2003服务器上的会话中,我尝试浏览到
http://localhost/default.aspx 并收到以下错误:

描述:处理配置文件时出错
需要服务此请求。请查看下面的具体错误详细信息并适当修改配置文件。

分析器错误消息:无法识别的配置部分''connectionStrings''

源错误:

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

源文件:c:\inetpub \wwwroot \web.config行:12

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

版本信息:Microsoft .NET Framework版本:1.1.4322.2300 ; ASP.NET
版本:1.1.4322.2300

我尝试通过默认网站,属性,ASP.NET
选项卡更改ASP.NET版本并切换到版本2.#。在此更改并运行IISRESET之后我现在在尝试浏览时找不到页面
http://localhost/default.aspx

任何人都可以帮忙吗?

注意:
default.aspx位于c:\\ \\ innerpub \ www.root
我可以看到IISTART.html没问题
我有管理员权利

谢谢
Scott

注意:默认.aspx包含:

<%@ Page Language =" VB" AutoEventWireup = QUOT假QUOT; 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>
测试< / div>
< / form>
< / body>
< / html>
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>



为2.0设置单独的应用程序池。

确保有问题的应用程序是设置为运行2.0。

将其移至设置为2.0的新应用程序池。


最有可能的是,您为一个版本设置了应用程序放置在应用程序池中

用于其他版本。


注意:将单个应用程序用于特定版本的
$的最佳方法b $ b框架是带有-s标志的aspnet_regiis。参见
http:// msdn .microsoft.com / library / en ... netversion.asp


-

Gregory A. Beamer


******************************************** *****

在盒子外面思考!

************************ *************************

" scott" < AI ************ @ yahoo.com>在消息中写道

新闻:OT ************** @ TK2MSFTNGP05.phx.gbl ...
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...

从IIS6和2003服务器上的会话中,我尝试浏览到
http://localhost/default.aspx 并收到以下错误:

描述:处理为此请求提供服务所需的配置文件时发生错误。请查看下面的具体错误
详细信息并适当修改配置文件。

解析器错误消息:无法识别的配置部分
''connectionStrings''

来源错误:

第10行:<配置>
第11行:< appSettings />
第12行:< connectionStrings />
第13行:< system.web>
第14行:<! -

源文件:c:\inetpub \wwwroot \web.config行:12

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

版本信息:Microsoft .NET Framework版本:1.1.4322.2300;
ASP.NET版本:1.1.4322.2300

我尝试通过默认网站,属性,ASP.NET选项卡更改ASP.NET版本并切换到版本2.#。在此更改和运行之后
IISRESET我现在在尝试浏览时找不到页面
http://localhost/default.aspx

任何人都可以帮忙吗?

注意:
default.aspx位于c:\\ \\ innerpub \ www.root
我可以看到IISTART.html没问题
我有管理员权利

谢谢
Scott

注意:默认.aspx包含:

<%@ Page Language =" VB" AutoEventWireup = QUOT假QUOT; 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>
测试< / div>
< / form>
< / body>
< / html>
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>



re:
分析器错误消息:无法识别的配置部分''connectionStrings''


您正在尝试使用web.config设置运行ASP.NET 1.1应用程序

仅对ASP.NET 2.0有效。


使用ASP.NET; IIS管理器中的选项卡,用于配置该应用程序,使其定位到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>在消息新闻中写道:OT ************** @ TK2MSFTNGP05.phx.gbl ...

来自IIS6和2003服务器上的会话尝试浏览
http://localhost/default.aspx 并获取以下错误:

描述:在处理服务此请求所需的配置文件期间发生错误。请查看下面的具体错误详细信息,并相应地修改配置文件。

解析器错误消息:无法识别的配置部分''connectionStrings''

源错误:

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

源文件:c:\inetpub \wwwroot \web.config行:12

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

版本信息:Microsoft .NET Framework版本:1.1.4322.2300 ; ASP.NET版本:1.1.4322.2300

我尝试通过默认网站,属性,ASP.NET选项卡更改ASP.NET版本并切换到版本2.#。在此更改并运行IISRESET后,当我尝试浏览到 http: //localhost/default.aspx

有人可以帮忙吗?

注意:
default.aspx位于c:\inetpub \ wwwroot
我可以看到IISTART.html没问题
我有管理员权利

谢谢
Scott

注意:default.aspx包含:

<%@ Page Language =" VB" AutoEventWireup = QUOT假QUOT;的CodeFile = QUOT; Default.aspx.vb"继承= QUOT; _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>
测试< / div>
< / form>
< / body>
< / html>
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>



这篇关于无法加载http://localhost/default.aspx的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆