We are trying to query broker database relying on the SDL Web Content Interaction Library (CIL) and Content Broker Query API (C#). We keep getting the error - No connection could be made because the target machine actively refused it 127.0.0.1:8081.
The app.config file has the following content:
<add key="discovery-service-uri" value="http://example:8082/discovery.svc" /> <add key="oauth‐enabled" value="false" />
Session enabled content service runs on the port 8081. All ports are open in windows firewall, OAuth is disabled. Content service is registered as capability in discovery service (http://localhost:8081/content.svc). Services are on Azure Virtual Machine (inbound port rules are also set).
When changing the settings to:
<add key="content-service-uri" value="http://example:8081/content.svc" /> <add key="oauth‐enabled" value="false" />
Everything works fine. Would appreciate any hints why it would behave so and any suggestions how to enable connection through discovery service. Thanks.