
.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 展开
--------------------------------------------------------------------------------
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 展开
2个回答
展开全部
报错:应用程序中的服务器错误。
解决:
1.搜索文件夹,检查站点下是否多了一个web.config文件(通常是这个问题)。
2.检查web.config里面配置的framework版本,是否和你编译所选择的版本相同。
解决:
1.搜索文件夹,检查站点下是否多了一个web.config文件(通常是这个问题)。
2.检查web.config里面配置的framework版本,是否和你编译所选择的版本相同。
追问
确实是多了一个web.config文件,这个文件多了以后是要删除还是怎么样?另外要怎么检查里面配置的framework版本呢~~新手求指点,O(∩_∩)O谢谢
追答
你直接删除就是了
至于哪一个是多余的 就这样我也给你说不清楚,你随便删除一个试试 运行不对的话 再删另一个试试
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
我也遇到了这样的问题请问你解决了吗?怎么解决啊
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询