使用超出应用程序级别注册为allowDefinition ='MachineToApplication'的节是错误的.此错误可能是由于未将虚拟目录配置为... [英] 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...

查看:79
本文介绍了使用超出应用程序级别注册为allowDefinition ='MachineToApplication'的节是错误的.此错误可能是由于未将虚拟目录配置为...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



在vs 2010中运行网站时,出现上述错误.

我已经尝试了可用的解决方案:
1)在IIS中配置网站
2)寻找web.configs(不需要)并删除它们.
3)将web.config从子文件夹移动到主文件夹.

但这一切对我都不起作用.

请指导我.还有其他设置需要做吗?

当我第一次面对这个问题时.

问候,
Janavi

Hi,

I get the above error when i run a website in vs 2010..

I have already tried the available solutions:
1)Configure the website in IIS
2) Looking for the web.configs (not needed) and removing them.
3)moving the web.config from subfolder to the main.

But all this did not work for me..

Please guide me.. Is there any additional setting to be done.

As I m facing this issue for the first time.

Regards,
Janavi

推荐答案

如果收到此错误,则表示错误.您的站点的子文件夹中有一个web.config文件.它具有allowDefinition ="MachineToApplication"值,但是在IIS中,您没有在此级别定义单独的应用程序.这是一个错误.在出现错误的级别上从web.config中删除此值,或将其定义为自己的应用程序.
If you get this error, it means what it says. You have a web.config file in a subfolder of your site. It has the allowDefinition=''MachineToApplication'' value, but in IIS you do not have a separate application defined at this level. This is an error. Remove this value from your web.config at the level that''s getting the error, or define this level as it''s own application.


使您的Web.Config文件Root foldersub-folder相同.


我认为文件夹中的ur应用程序文件夹会尝试在子文件夹中打开ur应用程序的确切文件夹
I think ur application folders in folders try to open exact folder of ur application in the sub folders


这篇关于使用超出应用程序级别注册为allowDefinition ='MachineToApplication'的节是错误的.此错误可能是由于未将虚拟目录配置为...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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