经典ASP应用程序问题 [英] Classic ASP application issue
问题描述
大家好,
我在运行经典的asp应用程序时遇到了问题。
我收到异常消息使用注册为allowDefinition ='MachineToApplication'的部分超出应用程序级别是错误的。这个错误可能是由虚拟引起的目录未被配置为IIS中的应用程序。
我的项目包含一个根级别的web.config文件和另一个子文件夹中的web.config。我在子文件夹部分下的web.config中遇到此错误。我使用的是Visual Studio 2008,系统操作系统是Windows 7和IIS7
请帮帮我。
Hi all,
I am facing an issue while running classic asp application.
I am getting exception message as "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".
My project contains one web.config file in root level and another web.config in sub folder. I am facing this error in web.config under sub folder section. I am using Visual studio 2008, System OS is Windows 7 and IIS7
Please help me.
推荐答案
为什么在经典ASP应用程序中使用web.config文件?无论如何,您不能将web.config文件放在子文件夹中,您需要将子文件夹设为虚拟目录,以便它作为自己的应用程序运行。
Why are you using web.config files in a classic ASP application? Regardless, you can't put web.config files in sub folders, you need to make your sub-folder a Virtual Directory so it runs as its own app.
这篇关于经典ASP应用程序问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!