.net关于Configuration Error的问题,在线寻高手解答。(问题补充是页面显示所有内容)

ServerErrorin'/'Application.---------------------------------------------------------... 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 23:
Line 24: <compilation defaultLanguage="c#" debug="true"/>
Line 25: <customErrors mode="Off"/><authentication mode="Windows"/>
Line 26: <httpRuntime requestValidationMode="2.0" />
Line 27: <pages validateRequest = "false"/>

Source File: D:\wwwroot\w9999\wwwroot\eSitewww\fukaileying\web.config Line: 25

Show Additional Configuration Errors:

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. (D:\wwwroot\w9999\wwwroot\eSitewww\fukaileying\web.config line 32)

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30128; ASP.NET Version:4.0.30128.1
展开
 我来答
jack87918
推荐于2017-11-24 · TA获得超过2048个赞
知道小有建树答主
回答量:1618
采纳率:100%
帮助的人:1479万
展开全部
报错:应用程序中的服务器错误。
解决:
1.搜索文件夹,检查站点下是否多了一个web.config文件(通常是这个问题)。
2.检查web.config里面配置的framework版本,是否和你编译所选择的版本相同。
追问
确实是多了一个web.config文件,这个文件多了以后是要删除还是怎么样?另外要怎么检查里面配置的framework版本呢~~新手求指点,O(∩_∩)O谢谢
追答
你直接删除就是了
至于哪一个是多余的 就这样我也给你说不清楚,你随便删除一个试试 运行不对的话 再删另一个试试
本回答被提问者采纳
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
麒麟168
2018-11-19 · 知道合伙人IT服务行家
麒麟168
知道合伙人IT服务行家
采纳数:114 获赞数:497
上海开放大学二等奖奖金获得者,中科集团项目经理

向TA提问 私信TA
展开全部
我也遇到了这样的问题请问你解决了吗?怎么解决啊
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 1条折叠回答
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式