你如何设置调试启动页中ASP.NET MVC应用程序? [英] How do you set the startup page for debugging in an ASP.NET MVC application?

查看:126
本文介绍了你如何设置调试启动页中ASP.NET MVC应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你如何开始调试在应用程序根目录的应用程序?例如:的http://本地主机:49742 /

How do you start debugging the application at the application root? For example: http://localhost:49742/

我总是让不存在的页面,如:
的http://本地主机:49742 /查看/主页/ About.aspx

I'm always getting a page which doesn't exist, such as: http://localhost:49742/Views/Home/About.aspx

请注意,这将是确定在开始的的http://本地主机:49742 /查看/首页/关于

Note that it would be OK to start at http://localhost:49742/Views/Home/About

推荐答案

转到您的项目的属性,并设置起始页属性。

Go to your project's properties and set the start page property.


  1. 转至项目的属性

  2. 转至的网站的标签

  3. 选择的特定页的单选按钮

  4. 键入所需的URL的特定页的文本框

  1. Go to the project's Properties
  2. Go to the Web tab
  3. Select the Specific Page radio button
  4. Type in the desired url in the Specific Page text box

这篇关于你如何设置调试启动页中ASP.NET MVC应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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