you should update the web.config on deployment.
by design asp.net reloads the application on web.config changes. asp.net core does not have this restriction (well it does, but uses appsettings.json instead of web.config, which does not trigger a restart).