Web配置filr错误 [英] Web config filr error

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

问题描述

我试图运行在vs2008中使用asp.net2.0开发的网站,但没有将框架更改为3.5,而是将其保留为2.0.在inetmgr中为网站添加了虚拟目录,并作为应用程序添加,我得到一个错误,

在应用程序级别之外使用使用注册为allow Definition =应用程序机器"的部分是错误的.此错误是由于虚拟目录未在IIS中配置为应用程序而引起的".

而我已将虚拟目录配置为应用程序.

任何人都可以帮我吗,

问候
Muralekarthick

I tried to run the website which is developed in asp.net2.0 in vs2008, didnt changed the framework to 3.5, left it as 2.0. Added virtual directory for the website in the inetmgr, and added as application, i get an error,

" It is an error to use a section registered as allow Definition = ''Machine to application''beyond application level. This error caused by virtual directory not being configured as an application in IIS"

Whereas i have configured Virtual Directory as application.

Can any one please help me,

Regards
Muralekarthick

推荐答案

只需检查托管应用程序中是否有多个Web.Config文件.有时,这也是导致此类错误的原因之一.
Just check if you have multiple Web.Config files in your hosted application. At times that is also one of reason for such error.


我愿意打赌ASP.NET不会说谎,并且错误是您需要在该级别配置应用程序您要查看的文件夹的名称.
I"m willing to bet that ASP.NET is not lying and the error is that you need to configure an application at the level of the folder you''re trying to view.


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

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