Greetings, I am currently experiencing an issue tasked with connecting my Ionic project to a WCF service located on another PC (running a C# Application) within the local network. I have verified that the network connection between the PCs is functioning properly and that the web service is up and running. To run my project in the browser, I am using Ionic serve
and have attempted to address the CORS issue by adjusting the proxy settings, but I continue to encounter the same error message:
GET http://localhost:53101/TruckService.svc net::ERR_CONNECTION_REFUSED
You can find the WCF Address at: http://localhost:53101/TruckService.svc
Prior to the error appearing, the system attempts to load all html files within the templates folder, leading to the message:
XHR finished loading: GET "http://localhost:8100/templates/tab-account.html".
Below is the controller code I am using to connect to the service, which I sourced from a tutorial:
.controller('DashCtrl', function($scope, $http) {
$http.get('http://localhost:53101/TruckService.svc').
success(function(data,GetQuoteAsync){
console.log(GetQuoteAsync),
console.log(data);
});
})
As I am relatively new to Angularjs and Ionic, I am unsure where I may be making a mistake. If I have omitted any pertinent details or if my explanation is unclear, please feel free to provide guidance.
Thank you.