Last post Jun 20, 2018 01:43 AM by bruce (sqlwork.com)
Jun 19, 2018 06:16 PM|gxt79|LINK
I have MVC application with angular 2. I have set the Index.html which is there in Src folder as startup page. Now when I am debugging it is not getting debugged. I mean to say it is not hitting the breakpoint in global.asax file and also the index action
method or logon action method. Bypassing all and showing the blank page in google.
Could you please tell me what I need to verify to get this resolved?
Thanks & Regards,
Gopi Krishna T
Jun 20, 2018 01:43 AM|bruce (sqlwork.com)|LINK
index.html is loaded by the static file handler (probably IIS). you won't get a global.asax breakpoint until you make an ajax call from the angular application.
I don't know you angular project setup, but often the index.html in the src folder is just input to the build. there should be a index.html in root/deploy folder that you should set as the startup file.