Visual Studio ASP.NET MVC Project: Setting the Start URL

Consider an ASP.NET MVC 2 project with VS 2010. The goal is to set the "start URL" when starting / debugging using the Cassini VS embedded web server.

Entering the URL that I want to download in the typical and valid controller/action format, VS 2010 provides this exception.

alt text

Tried remedies:

  • running url with and without slash
  • URL completion with and without slash

Question:. How can you specify a start URL for an MVC 2 project?

Technologies:

  • Visual studio 2010
  • ASP.NET MVC 2

Resolution: I used the wrong field in the launch options. You had to specify the " Specific page " field with a relative URL, not a launch URL.

+46
visual-studio asp.net-mvc visual-studio-2010 cassini
Dec 30 '09 at 19:50
source share
4 answers

The start URL must be a full URL and is not used frequently. This is intended to test web services by opening a page that is called into a service but is not part of the application itself.

If you just want to start from a specific page of your application that seems to you how you want, then use the "Specific page" field and enter your relative URL.

Here is the page for the project launch options document.

+34
Dec 30 '09 at 19:57
source share

Use the Start Page \ Specific Page - DO NOT START URL - and enter your URL without a slash.

That should do it for you.

+32
Dec 30 '09 at 19:57
source share

I was looking for a similar solution for VS2015. If someone reads this and you just want to run / debug through Visual Studio 2015 without having to join the process, and you are happy to run Local IIS instead of Cassini or IIS Express, you can set the configuration as follows:

enter image description here

+6
Feb 03 '16 at 22:28
source share

I just deleted the .user files in my web project, and the solution map and problem are resolved. Try closing your solution in Visual Studio and taking a backup of the files that you first delete.

0
Feb 21 '14 at 7:53
source share



All Articles