我想在停止调试或停止IIS Express网站时优雅地处理应用程序关闭,但我似乎无法运行Application_End。
If you're debugging using IIS Express, the Application_End function will execute if you right-click on the IIS Express icon on the tray, select the proper site from the context menu and stop it. This will end your debugging session in a way that does execute the Application_End method.
尝试在web.config中进行更改并保存。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.