产品使用及交流论坛

注册

 

QQ登录

只需一步,快速开始

发新话题 回复该主题

求助 Server Error in '/' Application. [复制链接]

1#
我的虚拟主机空间是1G自由主机,可以设置2个子目录,建3个独立网站。第一个网站是phpscup模板,运行提示如下:
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 18:     <pages validateRequest="false" enableEventValidation="false" enableViewStateMac="false" viewStateEncryptionMode="Never" />
Line 19:     <compilation defaultLanguage="C#" debug="false" />
Line 20:     <authentication mode="forms" />
Line 21:     <customErrors mode="Off">
Line 22:       <error statusCode="404" redirect="/error404.html" />


Source File: d:\webhost\hyb2011\web\hyb2013\web.config    Line: 20


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3625; ASP.NET Version:2.0.50727.3618

问题说明:web.config  文件里面<authentication mode="forms" />
修改为<authentication mode="windows" />  还是出现上面的提示。

请高手赐教,谢谢。我想有一个PageAdmin网站
分享 转发
TOP
2#

我的虚拟主机空间是hyb2011.195.1885858.com,是1G自由主机,可以设置2个子目录,建3个独立网站。第一个网站是www.hbsqc.com,是phpscup模板,我在http://hyb2011.195.1885858.com/下面建了一个文件夹hyb2013并上传了pageadmin到子目录hyb2013成功了,但是运行http://hyb2011.195.1885858.com/hyb2013/install/index.aspx,提示如下:
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 18:     <pages validateRequest="false" enableEventValidation="false" enableViewStateMac="false" viewStateEncryptionMode="Never" />
Line 19:     <compilation defaultLanguage="C#" debug="false" />
Line 20:     <authentication mode="forms" />
Line 21:     <customErrors mode="Off">
Line 22:       <error statusCode="404" redirect="/error404.html" />


Source File: d:\webhost\hyb2011\web\hyb2013\web.config    Line: 20


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3625; ASP.NET Version:2.0.50727.3618

问题说明:web.config  文件里面<authentication mode="forms" />
修改为<authentication mode="windows" />  还是出现上面的提示。

请高手赐教,谢谢。我的QQ:370434120,我想有一个PageAdmin网站
TOP
发新话题 回复该主题