Can't break in global.asax / Application_Start

后端 未结 9 1245
名媛妹妹
名媛妹妹 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-01 17:44

    I've got around this problem before by doing this:

    1. Run a clean on my solution (Right click the solution node and click clean)
    2. Close solution
    3. File -> Exit on visual studio
    4. If you have multiple instances of visual studio running then exit out of all instances. Ensure "devenv.exe" is not listed in the processes in task manager
    5. Delete the user options file (.suo), usually in the same directory as your solution (.sln) file
    6. Recycle IIS worker process or if using the development server, kill that process

    Now open your solution and give it a shot. (keep your fingers crossed :))

提交回复
热议问题