asp.net mvc - Can't step into wcf function with C# -
i'm still bit new wcf. followed tutorial on pluralsight. in solution, have:
wcf project "mycodelibrary" console app "consolehost" --host service, mvc project.
the mvc project references wcf project. in mvc project, have mylibservice.svc contains:
<%@ servicehost service="mycodelibrary.mylibservice" factory="system.servicemodel.activation.webservicehostfactory" %> there no code behind on file. if start consolehost app, works fine, can't step wcf code. have breakpoint in contoller on line calls service function,
"unable automatically debug "mycodelibrary". remote procedure not debugged. indicates debuggin has not been enabled on server."
i have on service , mvc project.
my code call function is:
webchannelfactory<imylibservice> cf = new webchannelfactory<imylibservice>( new uri("http://localhost:8084/mylib")); imylibservice client = null; client = cf.createchannel(); list<report> reports = client.getbydescrip("this report"); everything works if don't have breakpoint, want step service functions. how do this?
thank you.
in order debug service, need attach process. attach, ctrl + alt + p or "debug => attach process...". since you're using console application, need have both of service , host running. while host running, attach process, in case, process "consolehost.exe".
Comments
Post a Comment