Can't break in global.asax / Application_Start

后端 未结 9 1172
名媛妹妹
名媛妹妹 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:42

    Whenever you run an application for the first time, or say start an application, there is an ASP.Net Development Server - Port [port number] that starts,

    Application_Start() runs once in the course of an application.

    If you want the break point to be reached , you have to stop the ASP.Net Development Server Port and run your application again.

提交回复
热议问题