udotdevelopment/ATSPM

Unable to debug WCF Service

gsowmya2910 opened this issue · 1 comments

Request for instructions/ steps for running the ATSPM Application locally to debug the WCF service code.

Here are the steps I took to debug the service locally :

  1. I hosted WCF service locally on IIS and tested the service (my office pc)
    MOEWCFService_Running locally.png
    MOEWCFService_Running locally

LinkPivotService.svc.png
LinkPivotService svc

MetricGenerator.svc.png
MetricGenerator svc

2.I have set my startup project as SPM and followed steps to 'create Chart' for a signal

End points in the SPM web.config
Endpoint address

3.when I'm trying to hit on create chart button and entered the service in debug mode, I'm getting the below error.
UI Error.PNG
UI Error

The issue got resolved by making sure that services are running without any error locally

Troubleshooting steps:

  1. Update endpoint address with the same port numbers in the files MOEWcfServiceLibrary\App.config and SPM\Web.config for each service (LinkPivotService and ChartGenerator)

MOEWcfServiceLibrary\App.config
image

SPM\we.config
image

  1. Running the project through Visual Studio Administrator Mode.

Thank you UDot for your help.