Running aspnet web site starts on parent directory

廉价感情. 提交于 2019-12-11 06:37:20

问题


I have some old project written in asp.net web pages. I open project by Open Website option and choosing MyCompany folder. I start a project with debugging. The Asp.NET Development server starts.

Actual: localhost:53669/MyCompany/somepage.aspx

Expected: localhost:53669/somepage.aspx

How can I force the ASP.NET development server to start on MyCompany folder location not on the parent folder location?


回答1:


What version of Visual Studio are you using? In Visual Studio 2010, you can change it in the project properties

Steps

  • Open the Solution Explorer
  • Right click your project
  • Click Properties Window (not Property Pages)
  • Alter the Virtual path option from /MyCompany to just /

Example so you know you're in the right place

Before

After



来源:https://stackoverflow.com/questions/11848940/running-aspnet-web-site-starts-on-parent-directory

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!