运行ASPNET网站开始对父目录 [英] Running aspnet web site starts on parent directory

查看:193
本文介绍了运行ASPNET网站开始对父目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经写在asp.net网页中的一些旧的项目。我通过打开网站选项,并选择MyCompany的文件夹中打开项目。我开始调试的项目。该Asp.NET开发服务器启动。

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.

实际:本地主机:53669 / MyCompany的/ SomePage.aspx页面

预计:本地主机:53669 / SomePage.aspx页面

我怎么可以强制ASP.NET开发服务器上启动MyCompany的文件夹位置没有在父文件夹的位置?

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

推荐答案

您正在使用什么版本的Visual Studio?在Visual Studio 2010中,可以在项目属性更改

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

步骤


  • 打开解决方案管理器

  • 右键点击您的项目

  • 单击属性窗口(而不是属性页)

  • 修改虚拟路径从选项 / MyCompany的只是 /

  • 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

这篇关于运行ASPNET网站开始对父目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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