Console app client to Service Fabric Stateless Service
<p>I'm learning SF, and am now trying to build a console client to a stateless service.</p>

<p>tried to follow instructions here: <a href="https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-connect-and-communicate-with-services" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-connect-and-communicate-with-services</a></p>

<p>and added this to my StatelessService class</p>

<pre><code>    public interface IMyService : IService
    {
        Task&lt;string&gt; HelloWorldAsync();
    }
</code></pre>

<p>and a simple implementation</p>

<pre><code>    public Task&lt;string&gt; HelloWorldAsync()
    {
        return Task.FromResult("HELLO FROM SERVICE!");
    }
</code></pre>

<p>The rest is unchanged.</p>

<p>In my Console app I have</p>

<pre><code>IMyService helloWorldClient = ServiceProxy.Create&lt;IMyService&gt;(
   new Uri("fabric:/RestGateway/StatelessGateway1"));
string message = await helloWorldClient.HelloWorldAsync();
</code></pre>

<p>The service deployed to my local cluster and seems to work fine (green button) but I get an Exception when calling helloWorldClient.HelloWorldAsync().</p>

<p>Any idea how I can fix this? </p>