此错误可能是由于未在IIS中将虚拟目录配置为应用程序引起的 [英] This error can be caused by a virtual directory not being configured as an application in IIS
问题描述
我在web.config文件中遇到此错误
我使用了表单身份验证。当我编译应用程序时它会抛出错误
我使用了web.config文件:
D:\Project \New folder \ osama \ Rahmani osama\projects \\ \\ Application1 \\\web.config
错误描述:使用注册为allowDefinition ='MachineToApplication'的部分超出应用程序是错误的水平。此错误可能是由于虚拟目录未配置为IIS中的应用程序
看来您的网站虚拟目录需要设置为应用程序目录。错误应指定网站文件夹中的目录。
打开IIS,找到您的网站并导航到错误中的虚拟目录,右键单击它并选择转换申请
点击这里
http://forums.iis.net/t/1148147.aspx?It+为+的+误差+到+ +使用一个+ +部分注册+ AS + allowDefinition的+ MachineToApplication +超出+应用+水平+
I got this error in web.config file
I used form authentication. When i compile application it throw error
I used web.config file:
D:\Project\New folder\osama\Rahmani osama\projects\Application1\web.config
Error discription: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
It appears that your website virtual directory need to be set up as an application directory. The error should specify a directory within the website folder.
Open IIS, find your website and navigate to the virtual directory in the error, right click it and select "Convert to application"
Check here
http://forums.iis.net/t/1148147.aspx?It+is+an+error+to+use+a+section+registered+as+allowDefinition+MachineToApplication+beyond+application+level+
这篇关于此错误可能是由于未在IIS中将虚拟目录配置为应用程序引起的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!