Note that there are some explanatory texts on larger screens.

plurals
  1. PORavenDB client onlinux connecting to windows server using mono http
    text
    copied!<p>I've just tried connecting to my RavenDB windows instance from linux using mono. I'm getting a bizarre error with it, that seems to be mono related rather than raven related.</p> <p>Here is my recreate code (works on windows):</p> <pre><code>using System; using System.Collections.Generic; using System.Linq; using System.Text; using Raven.Client.Document; namespace ConsoleApplication2 { class Program { static void Main(string[] args) { try { var store = new DocumentStore() { ConnectionStringName = "RavenDB", EnlistInDistributedTransactions = false }; store.Initialize(); using (var session = store.OpenSession("system-events")) { session.Store(new { Name = "Test" }); session.SaveChanges(); } Console.WriteLine("done"); } catch (Exception ex) { Console.WriteLine(ex.ToString()); } Console.ReadKey(); } } } </code></pre> <p>and my mono version:</p> <pre><code>chris@x-ngx4:~/click/beta/Debug$ mono --version Mono JIT compiler version 2.10.8.1 (Debian 2.10.8.1-1ubuntu2.2) Copyright (C) 2002-2011 Novell, Inc, Xamarin, Inc and Contributors. www.mono-project.com TLS: __thread SIGSEGV: altstack Notifications: epoll Architecture: amd64 Disabled: none Misc: softdebug LLVM: supported, not enabled. GC: Included Boehm (with typed GC and Parallel Mark) </code></pre> <p>and the error:</p> <pre><code>chris@x-ngx4:~/click/beta/Debug$ mono ConsoleApplication2.exe System.IO.IOException: Internal error (no progress possible) Flush at System.IO.Compression.DeflateStream.CheckResult (Int32 result, System.String where) [0x00000] in &lt;filename unknown&gt;:0 at System.IO.Compression.DeflateStream.Flush () [0x00000] in &lt;filename unknown&gt;:0 at System.IO.Compression.GZipStream.Flush () [0x00000] in &lt;filename unknown&gt;:0 at Raven.Abstractions.Connection.HttpRequestHelper.WriteDataToRequest (System.Net.HttpWebRequest req, System.String data, Boolean disableCompression) [0x00000] in &lt;filename unknown&gt;:0 at Raven.Client.Connection.HttpJsonRequest.Write (System.String data) [0x00000] in &lt;filename unknown&gt;:0 at Raven.Client.Connection.ServerClient.DirectBatch (IEnumerable`1 commandDatas, System.String operationUrl) [0x00000] in &lt;filename unknown&gt;:0 at Raven.Client.Connection.ServerClient+&lt;&gt;c__DisplayClass68.&lt;Batch&gt;b__67 (System.String u) [0x00000] in &lt;filename unknown&gt;:0 at Raven.Client.Connection.ReplicationInformer.TryOperation[BatchResult[]] (System.Func`2 operation, System.String operationUrl, Boolean avoidThrowing, Raven.Abstractions.Data.BatchResult[]&amp; result) [0x00000] in &lt;filename unknown&gt;:0 </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload