c# - VS 2015 / WebAPI Fiddler 200--Code Executes--Solid Breakpoint not hit -
i have weird 1 morning. have cleaned , rebuilt numerous timesas closed , reopened vs 2015. have solid red break point , code executes, other controllers breakpoints hit?? don't understand missing here.
generally have solution 3 projects.
- web api
- ef repo
- mvc
breakpoints in mvc project hit fine. code in api controller executes fine doesn't break? fiddler reports 200 , can reissue command , 200's never hit break point?
it multipart mime , mvc project has it's own port localhost:50009 while api localhost:50109 shouldn't matter think????
the path in case matters api/upload/attyupload
[httppost] [allowanonymous] public async task<httpresponsemessage> attyupload() { ... } <form action="http://localhost:50109/api/upload/attyupload" method="post" enctype="multipart\form-data">....</form>
edit
following batuta's comment set 2 breakpoints. first in mvc startup.cs second in api global.asax.
the startup breakpoint hit global.asax 1 not. ok running compiled version of api breakpoints aren't hit?
very weird me have expected launch on it's own reason wasn't. went solution properties , set multiple startup projects selecting both mvc app , api start. once did started hitting breakpoints in api no problem.
Comments
Post a Comment