问题
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