How To Debug Web API Project From MVC Project In Same Solution

后端 未结 3 566
醉酒成梦
醉酒成梦 2020-12-29 02:54

In VS 2012, I am attempting to create an MVC 4 web application with jQuery calls to a Web API project. (Other devs will be consuming the API with our current, native app, a

3条回答
  •  误落风尘
    2020-12-29 03:21

    I had the same problem and have found a solution from here:

    forums.asp.net

    The fix is to do the following:

    In your solution file, click properties go to the Startup project node (if it is not already selected)

    Next select Multiple startup projects. Select your website and your webservice and in the Action column make sure both of them have "Start" selected.

    Now when you debug your website and put a break point in your webservice, it should hit the break point.

提交回复
热议问题