ASP MVC - Getting application to restart when starting new debugging


ASP MVC - Getting application to restart when starting new debugging



When editing parts of my project that get called in Application_Start(), i want to have the web app restart every time i press 'Debug', so that i can debug these parts. But if i dont change the Global.asax.cs self, it doesnt restart and therefore doesnt fire the Application_Start().

Is there any setting or trick to let the app restart each time i start a new debug?




After using Automapper to map a ViewModel how and what should I test?

1:



How to map table records to Any type using Castle ActiveRecord
If you are using the development server, simply right-click>stop on the tray icon.


Why do I get a TypeInitializationException when calling HtmlHelper.AntiForgeryToken?
When it starts back up you will have a fresh new app-domain that needs to execute global.asax..
How to access model in jquery
Or, in any case, dev or IIS, simply add a space or otherwise modify the web.config file - that will recycle the app domain..
Is it possible for a Master page to access Controller properties?
Update - on further consideration: Have you tried re building..
ASP.NET MVC - Wordpress Style URLs
Another thought - you could add a 'pre-build event' that 'touches' the web.config using a command line.


Dropdown client-side validation in IE7, using Html.ValidateFor() helper
BUT - you will probably want to define a special build configuration with configuration manager that is clearly marked, otherwise you may forget that you are killing your app domain and chase your tail in circles.


SEO: Duplicated URLs with and without dash “/” and ASP.NET MVC
;p. try searching for 'windows touch file timestamp'..



70 out of 100 based on 70 user ratings 820 reviews

@