请告诉我该webconfig错误的解决方案,并且此站点位于服务器上
问题描述:
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 34: </connectionStrings>
Line 35: <system.web>
Line 36: <authentication mode="Forms">
Line 37: <forms loginUrl="Login.aspx" protection="All" timeout="30" path="/" ></forms>
Line 38: </authentication>
Source File: C:\inetpub\vhosts\smilenbraces.com\httpdocs\wecenturionfinal\web.config Line: 36
答
通常,当您您的应用程序根文件夹中有多个Web.Config文件.
只需检查您是否有多个.如果是这样,请删除重复的副本.
阅读此处解决的类似问题: ASP.NET 2.0& "allowDefinition =" MachineToApplication"错误消息 [ http://forums.asp.net/p/769696/769696.aspx [ ^ ]
Generally this happens when you have more than one Web.Config file in your application root folder.
Just check if you have more than one. If so, remove the duplicate copies.
Read a similar issue resolved here:ASP.NET 2.0 & "allowDefinition=''MachineToApplication''" error message[^]
Other useful link that has similar issue discussed: http://forums.asp.net/p/769696/769696.aspx[^]
我认为您没有为IIS中的应用提及ASP.NET框架的正确版本
一旦看到这些链接:
http://forums.asp.net/t/1064323.aspx/1 [ ^ ]
https://forums.asp.net/t/1491204.aspx [ http://forums.iis.net/p/1167855/1944067.aspx [ ^ ]
I think you are not mention correct version of the ASP.NET framework for the app in IIS
once see these links:
http://forums.asp.net/t/1064323.aspx/1[^]
https://forums.asp.net/t/1491204.aspx[^]
http://forums.iis.net/p/1167855/1944067.aspx[^]