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

Kai Walter commented on TINKERPOP-1952:
---------------------------------------

[~Florian Hockmann] you're right - that's a bit confusing

+In my [sample app|https://github.com/KaiWalter/TINKERPOP-1952] I get at line 
35:+

*System.NullReferenceException*
 HResult=0x80004003
 Message=Object reference not set to an instance of an object.
 Source=Gremlin.Net
 StackTrace:
 at Gremlin.Net.Driver.Connection.<ReceiveAsync>d__14`1.MoveNext()
 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
 at 
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
 task)
 at Gremlin.Net.Driver.Connection.<SubmitAsync>d__8`1.MoveNext()
 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
 at 
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
 task)
 at Gremlin.Net.Driver.ProxyConnection.<SubmitAsync>d__3`1.MoveNext()
 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
 at 
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
 task)
 at Gremlin.Net.Driver.GremlinClient.<SubmitAsync>d__6`1.MoveNext()
 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
 at 
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
 task)
 at Gremlin.Net.Driver.GremlinClientExtensions.<SubmitAsync>d__4`1.MoveNext()
 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
 at 
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
 task)
 at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
 at TestGremlin.Program.<Execute>d__1.MoveNext() in 
C:\Users\Y1WLE\src\Apache\TINKERPOP-1952\TestGremlin\Program.cs:line 35
 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
 at 
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
 task)
 at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
 at TestGremlin.Program.Main(String[] args) in 
C:\Users\Y1WLE\src\Apache\TINKERPOP-1952\TestGremlin\Program.cs:line 18

 
+In the [CosmosDB sample 
app|https://github.com/Azure-Samples/azure-cosmos-db-graph-gremlindotnet-getting-started]
 (even after upgrading to 3.3.2) I get at line 65: +

*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

Inner Exception 1:
WebSocketException: The server returned status code '200' when status code 
'101' was expected.



> using Gremlin.Net in .NET Framework 4.71 console app causes "Could not load 
> file or assembly 'System.Reflection.TypeExtensions, Version=4.0.0.0..."
> ---------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 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:
> 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
> Inner Exception 1:
> {color:red}*WebSocketException: The server returned status code '200' when 
> status code '101' was expected.*{color}
>  
>  



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

Reply via email to