[ 
https://issues.apache.org/jira/browse/TINKERPOP-1952?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16461048#comment-16461048
 ] 

Florian Hockmann commented on TINKERPOP-1952:
---------------------------------------------

Sorry, but I'm a bit lost now on what this ticket is about. The issue was 
originally about a problem that only occurred with .NET Framework 4.7.1 if I 
understood it correctly, but now you deleted that information from the 
description and the title contains _.NET Framework 4.6.1_. So, is the issue 
still specific to some version of the .NET Framework?

In the end, the error seems to be specific to CosmosDB when you can't get any 
data back with Gremlin.Net even for simple queries like {{1+1}}. So I suggest 
that you try to reproduce the problem with Gremlin Server instead of CosmosDB 
in which case we can investigate further or that you report the problem to the 
CosmosDB support team.

> using Gremlin.Net in .NET Framework 4.61 sample console app GremlinSampleNet 
> results in exception
> -------------------------------------------------------------------------------------------------
>
>                 Key: TINKERPOP-1952
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1952
>             Project: TinkerPop
>          Issue Type: Bug
>          Components: dotnet
>    Affects Versions: 3.3.2
>         Environment: Windows Server 2016 1607
>            Reporter: Kai Walter
>            Priority: Major
>
> I wanted to use Gremlin.Net in Azure Functions and stumbled over [this 
> problem|https://stackoverflow.com/questions/49923888/could-not-load-file-or-assembly-system-reflection-typeextensions-version-4-0-0].
> When downloading and running the sample
>  
> [https://github.com/Azure-Samples/azure-cosmos-db-graph-gremlindotnet-getting-started]
>  on my machine I run into this error in {{program.cs}} line 64:
>   System.AggregateException
>  HResult=0x80131500
>  Message=One or more errors occurred.
>  Source=mscorlib
>  StackTrace:
>  at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean 
> includeTaskCanceledExceptions)
>  at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, 
> CancellationToken cancellationToken)
>  at System.Threading.Tasks.Task.Wait()
>  at GremlinNetSample.Program.Main(String[] args) in 
> C:\Users\Y1WLE\src\Microsoft\azure-cosmos-db-graph-gremlindotnet-getting-started\GremlinNetSample\Program.cs:line
>  65
> {color:#ff0000}Inner Exception 1:
>  NullReferenceException: Object reference not set to an instance of an 
> object.{color}{color:#ff0000} {color}
> When cloning Gremlin.Net and referencing it in the sample app, I can narrow 
> it down to {{Connection.cs}} line 89, where {{received}} gets returned null 
> on the 2nd iteration / after the authorize iteration.
> My settings:
>  private static string hostname = 
> "\{mycosmosdbaccount}.gremlin.cosmosdb.azure.com";
>  private static int port = 443;
>  private static string authKey = "\{mycosmosdbprimarykey}";
>  private static string database = "graph1";
>  private static string collection = "customer360";
> I also tried with a adding a basic statement in {{program.cs}} line 29:
> { "Simple", "1=1" },
> { "Cleanup", "g.V().drop()" },
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to