allowDefinition ='MachineToApplication'问题 [英] allowDefinition='MachineToApplication' problem

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

问题描述

这是什么意思?

What does this mean?

Error   315 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.  
E:\Ala Qunaibi Documents\Project D\Admin\web.config 62

推荐答案

检查您的应用程序是否具有多个Web.config文件?因此,通常会发生这种情况.

确保只有一个 web.config文件.

接下来,当您在IIS上发布它时...检查配置文件.设置为正确的.NET Framework版本.
Check if your application has more than 1 Web.config file? Generally this occurs because of that.

Make sure you just have only ONE web.config file.

Next when you publish it on IIS... check config file. Set to correct .NET Framework version.


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

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