# C# Client Documentation Doesn't reflect Nuget classes

**URL:** <https://discuss.dgraph.io/t/c-client-documentation-doesnt-reflect-nuget-classes/16623>\
**Category:** Documentation\
**Tags:** docs, client\
**Created:** [January 21, 2022, 1:56pm UTC](https://discuss.dgraph.io/t/c-client-documentation-doesnt-reflect-nuget-classes/16623 "2022-01-21T13:56:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![davidt](https://avatars.discourse-cdn.com/v4/letter/d/51bf81/32.png) [@davidt](https://discuss.dgraph.io/u/davidt)\
**Post date:** [January 21, 2022, 1:56pm UTC](https://discuss.dgraph.io/t/c-client-documentation-doesnt-reflect-nuget-classes/16623/1 "2022-01-21T13:56:07Z")

</div>

Have been reading the Dgraph C# client documentation to begin interrogating the server. To create a client you have to do the following based on docs ([LINK](https://dgraph.io/docs/clients/csharp/)):

```auto
var client = new DgraphClient(new Channel("127.0.0.1:9080", ChannelCredentials.Insecure));

```

Unfortunatly, DgraphClient constructor specified in the Dgrapg nuget 21.3.1.2 wants the following:

```auto
public DgraphClient(params GrpcChannel[] channels);

```

So I tried the following based on what the client class expects:

```auto
var _client = new DgraphClient(GrpcChannel.ForAddress("http://127.0.0.1:9080", new GrpcChannelOptions()
            {
                Credentials = Grpc.Core.ChannelCredentials.Insecure
            }));

```

But I never successfully connect. I get the following error:

```auto
{ExceptionalError with Message='Status(StatusCode=Internal, Detail="Error starting gRPC call: An error occurred while sending the request.")', Exception='Grpc.Core.RpcException: Status(StatusCode=Internal, Detail="Error starting gRPC call: An error occurred while sending the request.")
   at Dgraph.DgraphClient.<>c __DisplayClass6_0.<<Alter>b__ 0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at Dgraph.DgraphClient.DgraphExecute[T](Func`2 execute, Func`2 onFail)'}

```

Are the docs wrong? Have not found a way to connect to dgraph in c# yet. I’m in a .NET Core project.
