Can't break in global.asax / Application_Start

后端 未结 9 1251
名媛妹妹
名媛妹妹 2021-02-01 16:49

I got a break point on the first line of Application_Start(), but Visual Studio wont break on it.

Visual Studio have attached itself to the IIS working proc

9条回答
  •  青春惊慌失措
    2021-02-01 17:39

    Application_Start() only runs once, when the application starts. A few things that restart the application are:

    • web.config changes
    • recycling the worker process - you can do this in IIS Manager or by running iisreset at the command line.

提交回复
热议问题