虚拟目录未配置为IIS中的应用程序??????? [英] virtual directory not being configured as an application in IIS ???????

查看:147
本文介绍了虚拟目录未配置为IIS中的应用程序???????的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有代码项目:



嗨每个人身体

事实上,我有很多问题scince很多天

我希望你可以帮助我

我用ASP编写ASP.net网站,我的服务器是我的本地电脑

当我运行时到Visual Studio 2005中的项目,这个按钮出现错误:



使用注册为allowDefinition ='MachineToApplication'的部分超出应用程序是错误的水平。此错误可能是由于虚拟目录未在IIS中配置为应用程序引起的。



它告诉我在配置文件中找到的错误line:



< authentication mode =Windows>



请注意我在安装Visual Studio 2005之前为iis进行了设置

我有windows xp



请帮帮我...

感谢所有

解决方案

我认为这是你需要看的:



http://forums.asp.net/p/769696/769696.aspx [ ^ ]



基本上你只能在appsettings,授权等子文件夹中放置一些允许的设置。请从所有web.config中删除不必要的web.config条目。


< blockquote>哟你的根文件夹中有多个Web.Config文件?通常这是导致此错误的原因。


如果您有多个配置文件(web.config)导致该错误。即使在单独的directoriyes中也有多个web.config意味着您需要多个应用程序,在这种情况下,您需要在IIS或托管中将它们设置为虚拟目录,如果您希望您的应用程序在线


Dear all in code project:

hi every body
In fact, i have very big problem scince many days
and i hope that you can help me
I make web site in ASP.net with C# and my server is my local computer
When i make run to the project in Visual Studio 2005 that error appears with this massage:

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 tell me that the error found in configuration file at that line:

<authentication mode="Windows">

Please note that I make setup for iis before i setup Visual Studio 2005
I have windows xp

Please help me...
Thank for all

解决方案

I think this is what you need to look at :

http://forums.asp.net/p/769696/769696.aspx[^]

Basically you can only put few settings that are allowed in sub folders like appsettings, authorization, etc. Please remove unnecessary web.config entries from all the web.config.


Do you have multiple Web.Config file in your root folder? Generally that is the cause of this error.


If you have multiple configuration files (web.config) causes that error . Having multiple web.config even in separate directoriyes means you want "multiple" applications in which case you need to make them "virtual directory" in IIS or in hosting if you want your app online


这篇关于虚拟目录未配置为IIS中的应用程序???????的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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