title: gRCP - Unable to Call Server Method
body: <p>So I have a C# gRCP Server running on Visual Studio with a Remote Method that takes in a String and just responds to the client &quot;Hi&quot;+{String} back nothing too fancy.
  I'm almost 100 sure there is nothing wrong with the Server because I'm using the template provided by VS and I can hit the server using a External Tool,</p>
  <p>I'm trying to create a JAVA Client to Hit that same server, But keep running into this error
  <em>UNIMPLEMENTED: Service is unimplemented</em></p>
  <p>And on my C# Server Console it says</p>
  <p><em>info: Grpc.AspNetCore.Server.Internal.ServerCallHandlerFactory[1]
  Service 'Greeter' is unimplemented.</em></p>
  <p><strong>JAVA Client Side</strong></p>
  <pre><code>import com.mycompany.grpc2.GreeterGrpc;
  import com.mycompany.grpc2.Greet;
  import io.grpc.*;
  
  public class GrpcClient {
      public static void main(String[] args) {
  
          System.out.println(&quot;running..&quot;);
          String name = &quot;Billy&quot;;
  
          ManagedChannel channel = ManagedChannelBuilder.forAddress(&quot;localhost&quot;, 5014).usePlaintext().build();
          GreeterGrpc.GreeterBlockingStub stub = GreeterGrpc.newBlockingStub(channel);
  
          Greet.HelloRequest req = Greet.HelloRequest.newBuilder().setName(name).build();
          Greet.HelloReply reply = stub.sayHello(req);
  
          String x = reply.getMessage().toString();
          System.out.println(x);
  
      }
  }
  </code></pre>
  <p><strong>Here is also the .Proto File</strong></p>
  <pre><code>syntax = &quot;proto3&quot;;
  
  option java_package = &quot;com.mycompany.grpc2&quot;;
  
  // The greeting service definition.
  service Greeter {
    // Sends a greeting
    rpc SayHello (HelloRequest) returns (HelloReply);
    rpc ByTwo (NumRequest) returns (NumReply);
  }
  
  // The request message containing the user's name.
  message HelloRequest {
    string name = 1;
  }
  
  // The response message containing the greetings.
  message HelloReply {
    string message = 1;
  }
  
  message NumRequest{
    int32 num = 1;
  }
  
  message NumReply{
    int32 numByTwo = 1;
  }
  </code></pre>
  <p><strong>C# Server Side</strong></p>
  <pre><code>using Grpc.Core;
  using gRPC_Server;
  
  namespace gRPC_Server.Services
  {
      public class GreeterService : Greeter.GreeterBase
      {
          private readonly ILogger&lt;GreeterService&gt; _logger;
          public GreeterService(ILogger&lt;GreeterService&gt; logger)
          {
              _logger = logger;
          }
  
          //Hello Service
          public override Task&lt;HelloReply&gt; SayHello(HelloRequest request, ServerCallContext context)
          {
              return Task.FromResult(new HelloReply
              {
                  Message = &quot;Hello &quot; + request.Name
              });
          }
      }
  }
  </code></pre>
  <p><strong>Program.cs</strong></p>
  <pre><code>// Additional configuration is required to successfully run gRPC on macOS.
  // For instructions on how to configure Kestrel and gRPC clients on macOS, visit https://go.microsoft.com/fwlink/?linkid=2099682
  
  // Add services to the container.
  
  
  builder.Services.AddGrpc();
  
  var app = builder.Build();
  
  
  
  // Configure the HTTP request pipeline.
  app.MapGrpcService&lt;GreeterService&gt;();
  app.MapGet(&quot;/&quot;, () =&gt; &quot;Communication with gRPC endpoints must be made through a gRPC client. To learn how to create a client, visit: https://go.microsoft.com/fwlink/?linkid=2086909&quot;);
  
  
  
  app.Run();
  
  </code></pre>
  <pre><code>{
    &quot;profiles&quot;: {
      &quot;gRPC_Server&quot;: {
        &quot;commandName&quot;: &quot;Project&quot;,
        &quot;dotnetRunMessages&quot;: true,
        &quot;launchBrowser&quot;: false,
        &quot;applicationUrl&quot;: &quot;http://localhost:5014;https://localhost:7014&quot;,
        &quot;environmentVariables&quot;: {
          &quot;ASPNETCORE_ENVIRONMENT&quot;: &quot;Development&quot;
        }
      }
    }
  }
  </code></pre>
  <p>Any help will be Greatly appreciated,
  Thanks for reading</p>