虚拟目录未设置?或其他 [英] Virtual directory not set?? or it's something else

查看:64
本文介绍了虚拟目录未设置?或其他的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果有人可以帮助我,我将非常感激.

我陷入了这个错误,试图开始工作,但无济于事.

错误102使用超出应用程序级别注册为allowDefinition =''MachineToApplication''的节是错误的.此错误可能是由于未在IIS中将虚拟目录配置为应用程序引起的. ... \ Web.config 389


我阅读了很多帖子,但是在那里提供的解决方案无法解决我的问题.

这是我尝试过的方法.

当我尝试构建应用程序时,它因此错误而失败.

我将应用程序文件夹复制到intepub \ wwwroot中,然后在IIS管理器中将其转换为应用程序并设置虚拟文件夹.如果我尝试从iis浏览到它,这是可行的,但是我在Visual Studio中仍然遇到相同的错误,并且可以调试它.

我已经检查了.net版本,这是正确的.

可能只有一个web.config

也许我缺少在Visual Studio中加载应用程序的东西(顺便说一句,我使用VS.net 2008,IIS 7,.net Framework 2.0 (因为该应用程序是在此版本中构建的).

非常感谢

dakini

解决方案

而不是创建虚拟目录,而是对其进行了转换进入IIS上的应用程序.对于IIS 7,您可以执行此操作.
请阅读我的完整文章
在IIS 7上部署ASP.NET网站. [ ^ ]


Hi there, i''m greatful if anyone can help me with it.

i''m stuck with this error, trying to get to working but to no avail.

Error 102 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. ...\Web.config 389


i read lots of the posts but the solutions offered there did not resolve my problem.

here is what i''ve tried.

when i try to build the app it fails with this error.

i copy the app folder in intepub\wwwroot, then in IIS manager convert it to application and set the virtual folder. if i try to browse to it from iis it kind of works but i still get the same error in visual studio and i can debug it.

i have checked the .net version, it''s correct.

there is only one web.config

maybe i''m missing something loading the app in visual studio (btw i''m using VS.net 2008, IIS 7, .net framework 2.0 as the application was build with in this version)

many thanks

dakini

解决方案

Rather than creating Virtual Directory , Convert it into Application on IIS. For IIS 7 you have do that.
please read My Complete Article
Deploying ASP.NET Web Sites on IIS 7.[^]


这篇关于虚拟目录未设置?或其他的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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