Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio ASP.Net MVC undo set as start page action

I have an web application that I'm working on, it was working fine until my curiosity got the better of me and I right-clicked on a view and chose Set As Start Page option. Now, whenever I run my application it takes me to the Resource Not Found error page. I have the default register route set in my Global config route which was working fine before. I notice that the URL now reads:

http://localhost:1234/Views/User/Login.aspx

instead of

http://localhost:1234/

like it was before. I'm not sure how to undo this action or what was changed, I've looked in my web.config file but I'm not sure what to look for exactly, Help is appreciated.

like image 743
kingrichard2005 Avatar asked May 12 '10 18:05

kingrichard2005


People also ask

How to remove set as start page in MVC?

Select the specific page then right click on it and select exclude from project, after that again right click on that page and select include in project. It works for me.

How do I remove set as StartUp project in Visual Studio?

Select a project and right click, then select 'Remove from StartUp Projects...'


1 Answers

You can set it in the Specific Page option in the project properties, just leave the text box empty.

alt text

like image 198
Glennular Avatar answered Oct 06 '22 11:10

Glennular