0

I have created a client application to consume the hosted web service and was able to consume the service without any issues(WCF service self hosted under microsoft services). Now my aim is to debug the self hosted WCF service using the Visual studio client application. When I try to debug,an exception is thrown at consuming point method that

Unable to debug the remote application.The remote procedure couldnt be debugged.

Note:I have attached the process(hosted service process) to the debugger which is running.Before installing the service,I was able to debug through client VS to server VS just for cross checking.Both client and server are in different projects.

My question is how can I debug the service since I cannot run the hosted application because both are consuming the same end point.I dont understand the whole debugging thing because to debug an application it must be run with code,but hosted application is independent of code.I have checked and tried to understand this debugging,I think I am missing something critical.

Hameed Syed
  • 3,939
  • 2
  • 21
  • 31
  • If they are separate processes(not in the same solution), I agree with Matt Davis' suggestion, we will not be able to "step into" it when debugging the client unless we add System.Diagnostics.Debugger.Break() or others here: https://stackoverflow.com/questions/1307182/wcf-can-no-longer-step-into-a-service-thats-locally-hosted-why-not – Jack Zhai Oct 23 '17 at 07:27

1 Answers1

-1

I think this can help you.You can open your iis express port by flowing this link

iis express enable external request

and debug your service in your visual studio an call service from everywhere

you can find your port number here or iis express applications

Amirhossein Yari
  • 2,054
  • 3
  • 26
  • 38