Web配置文件中的错误 [英] Error in web config file

查看:72
本文介绍了Web配置文件中的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,
当我试图在另一台机器上执行我的项目时,我在Web配置中遇到以下错误.我试图创建虚拟目录以及配置的IIS浏览器来解决它,但仍然遇到相同的错误.请为此提供帮助.

错误:

Hi Friends,
I''m getting following error in web config when i m trying to execute my project on another machine.I tried to create virtual directory as well as configured IIS exploer to solve it.But still getting the same error.please help me for this.

Error:

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.


<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>

推荐答案

您好,

我认为您正面临这样的问题,因为


您的项目可以在以前的计算机上完美运行吗?

如果是然后....我认为这是因为您在选择文件时未选择适当的文件夹而发生的(文件<<打开网站<<然后请选择应用程序的实际文件夹(可能像Newfolde1<< folder2< ;<应用程序文件夹),请浏览实际文件夹)...


肯定会对您有帮助....



请让我反馈您的意见.


请标记它是否有效.....
Hello,

I think you are facing such Issue Becouse Of


Is your project run perfectly on your previous Machine ?

If Yes Then....i think it happened because you of are Not Selecting Proper Folder while you (file <<open website<<then please select the actual folder of you application (it may like Newfolde1<<folder2<<application folder)please browse actual folder )...


Definitely it will help you....



please let me your feed back .


Please mark if it works.....


通常,当您的应用程序根文件夹中有多个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[^]


这篇关于Web配置文件中的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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