简体   繁体   English

在IIS中将网站添加为应用程序

[英]Adding the website as an application in IIS

I have a website deeloped in ASP.NET and I want it to be accessed via local URL, for eg: http://localhost/website20 我有一个在ASP.NET中开发的网站,我希望可以通过本地URL访问它,例如: http:// localhost / website20

I tried once but the CMS in my website started giving error "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." 我尝试了一次,但是网站上的CMS开始出现错误“使用超出应用程序级别注册为allowDefinition ='MachineToApplication'的部分是错误的。此错误可能是由于未在IIS中将虚拟目录配置为应用程序引起的。 ” Please help about the steps I need to follow. 请帮助我需要遵循的步骤。

根据所使用的VS项目模板的类型,在VS项目属性或IIS中为您的站点创建虚拟目录。

步骤可能有所不同,具体取决于您所使用的Win ver和IIS ver,但是您必须转到“控制面板”->“管理工具”->“ IIS”->,然后在默认网站上单击鼠标右键并执行“创建虚拟目录”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM