asp.net mvc - Can't Debug Web API called from MS Access -


i have web api (.net mvc) that's being called ms access vba module, so:

objhttp.open "post", "http://ourwebserver/api/run", false objhttp.setrequestheader "content-type", "application/json" objhttp.send (body) 'body string containing parameters used debug.print objhttp.status debug.print objhttp.responsetext 

well, need able debug actual api. so, have project loaded on local machine, i'm not sure how debug code.

what i've tried far run project, set breakpoint @ top of controller, change objhttp.open command point localhost entry that's created:

objhttp.open "post", "http://localhost:54321/api/run", false 

as as:

objhttp.open "post", "http://localhost:54321/", false 

...but, in both cases, breakpoint never hit. fails status = 500.

i've tried attaching debugger... don't know attach to. there's no w3wp.exe in list. i've tried attach msaccess.exe , chrome, i'm having no success. when attach msaccess.exe, error not being able establish connection.

so essentially, i'm trying figure out how tell vba process call local api code so's can debug it. i'm having hard time figuring out magic words make happen.

edit: record, when try run project (f5 vs), following rte in browser:

could not load file or assembly 'antlr3.runtime' or 1 of dependencies. api call exited abnormally. (exception hresult: 0x800300fa (stg_e_abnormalapiexit))

figgered out! had run solution before on local machine, had forgotten sorcery required work. basically, error:

could not load file or assembly 'antlr3.runtime' or 1 of dependencies. api call exited abnormally. (exception hresult: 0x800300fa (stg_e_abnormalapiexit))

...was result of identity impersonate being true in web.config file. so, this:

<identity impersonate="false" username="dom\username" password="#########"/> 

then, able f5 web app no errors, , call api code in vba:

objhttp.open "post", "http://localhost:54321/api/run", false 

i can call api access, hit breakpoints , step through!


Comments