解决错误使用注册为allowDefinition =应用程序级别之外'MachineToApplication'的节whitout在网站应用程序转换 [英] Solve error to use a section registered as allowDefinition='MachineToApplication' beyond application level whitout convert application in web site
问题描述
喜当我移动上线的项目,我得到这个错误
Hi when a moved my project on line i obtain this error
Line 19: </assemblies>
Line 20: </compilation>
Line 21: <authentication mode="Forms">
Line 22: <forms loginUrl="~/user_login.aspx" name=".ASPXFORMSAUTHRECSHIELD" timeout="30" slidingExpiration="true" />
Line 23: </authentication>
源文件:D:\\ WWW \\ MW_qXnIPRqPq \\ shieldtrust.it \\ shield_trust \\ web.config行:21
Source File: d:\www\MW_qXnIPRqPq\shieldtrust.it\shield_trust\web.config Line: 21
说明:此请求提供服务所需的配置文件的处理过程中发生错误。请检查下面的特定错误详细信息并适当地修改配置文件。
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.
分析器错误信息:这是使用注册为allowDefinition =应用程序级别之外'MachineToApplication'的节是错误的。这个错误可以通过未被配置为在IIS中应用程序的虚拟目录引起的。
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.
有关解决这个错误我想和我的供应商交谈,并配置目录成为一个应用程序Ô有另一种方式?
谢谢
For fix this error I want to talk with my provider and configure the directory into a an application o there is another way? thanks
推荐答案
有可能是为这个很多可能的原因之一。
There can be one of many possible reasons for this
- 您可能已添加主文件夹内的备份文件夹。如果是,将其删除。
- 确保你已经打开了正确的根文件夹,如果您正在使用的Visual Studio 项目
- 确保你没有的web.config文件中任何副本保存在项目中。
希望它帮助。
如果你仍然遇到了同样的问题,让我知道:)
Hopefully it helps. In case you are still experiencing the same problem, let me know :)
这篇关于解决错误使用注册为allowDefinition =应用程序级别之外'MachineToApplication'的节whitout在网站应用程序转换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!