注册为allowDefinition ='MachineToApplication Error的部分 [英] a section registered as allowDefinition='MachineToApplication Error

查看:83
本文介绍了注册为allowDefinition ='MachineToApplication Error的部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI
此错误我的托管服务器是Godaddy

HI This Error My Hosted Server Is Godaddy

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 22:
Line 23:     <httpRuntime requestValidationMode="2.0"/>
Line 24:     <sessionState timeout="540"/>
Line 25:     <!--
Line 26:             Set compilation debug="true" to insert debugging


Source File: D:\Hosting\10550270\html\****\web.config    Line: 24


Show Additional Configuration Errors:
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272



提前Thakyou


Thakyou in advance

推荐答案

通常,当您在应用程序根文件夹中有多个Web.Config文件时会发生这种情况。

只需检查您是否有多个。如果是这样,请删除重复的副本。



阅读此处解决的类似问题: ASP.NET 2.0& allowDefinition =''MachineToApplication''错误消息 [ ^ ]



讨论类似问题的其他有用链接:部分注册为allowDefinition =''MachineToApplication'' [ ^ ]
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: section registered as allowDefinition=''MachineToApplication'' [^]


这篇关于注册为allowDefinition ='MachineToApplication Error的部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆