Dynalon / Rainy

Simple Tomboy/Tomdroid cloud/syncing server. Written in C# with AngularJS web frontend. Supports SQLite & Postgres Backends.
http://dynalon.github.io/Rainy
GNU Affero General Public License v3.0
88 stars 15 forks source link

Debian server -- mono lib issues #19

Closed jonpolak closed 11 years ago

jonpolak commented 11 years ago

Guys, I'm very new to running my own server, so please sorry if I'm asking something that's obvious.

Did libmono-complete install, tried runtime 4, 2, and no runtime specification. I still get the same errors shown below... no matter what. Any ideas?

joni@1datapoint:~/rainy$ mono --runtime=v2.0 Rainy.exe -c settings.conf WARNING: The runtime version supported by this application is unavailable. Using default runtime: v1.1.4322

\ (Rainy.exe:7601): WARNING **: The class System.Collections.Generic.Dictionary`2 could not be loaded, used in mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

Unhandled Exception: System.TypeLoadException: Could not load type 'Rainy.MainClass' from assembly 'Rainy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'. joni@1datapoint:~/rainy$

trepidity commented 11 years ago

When you type mono --version what is reported?

Jared Jennings http://jaredjennings.org

On Wed, Apr 3, 2013 at 7:56 AM, Jonathan notifications@github.com wrote:

Guys, I'm very new to running my own server, so please sorry if I'm asking something that's obvious.

Did libmono-complete install, tried runtime 4, 2, and no runtime specification. I still get the same errors shown below... no matter what. Any ideas?

joni@1datapoint:~/rainy$ mono --runtime=v2.0 Rainy.exe -c settings.conf WARNING: The runtime version supported by this application is unavailable. Using default runtime: v1.1.4322

\ (Rainy.exe:7601): WARNING **: The class System.Collections.Generic.Dictionary`2 could not be loaded, used in mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

Unhandled Exception: System.TypeLoadException: Could not load type 'Rainy.MainClass' from assembly 'Rainy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'. joni@1datapoint:~/rainy$

— Reply to this email directly or view it on GitHubhttps://github.com/Dynalon/Rainy/issues/19 .

jonpolak commented 11 years ago

sony@1datapoint:~$ mono --version Mono JIT compiler version 2.6.7 (Debian 2.6.7-5.1) Copyright (C) 2002-2010 Novell, Inc and Contributors. www.mono-project.com TLS: __thread GC: Included Boehm (with typed GC and Parallel Mark) SIGSEGV: altstack Notifications: epoll Architecture: x86 Disabled: none

sony@1datapoint:~/rainy$ mono Rainy.exe -c settings.conf WARNING: The runtime version supported by this application is unavailable. Using default runtime: v1.1.4322

\ (Rainy.exe:19060): WARNING **: The class System.Collections.Generic.Dictionary`2 could not be loaded, used in mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

Unhandled Exception: System.TypeLoadException: Could not load type 'Rainy.MainClass' from assembly 'Rainy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'. joni@1datapoint:~/rainy$

Jonathan Mobile: +1 416 774 8018

On Wed, Apr 3, 2013 at 12:19 PM, Jared notifications@github.com wrote:

When you type mono --version what is reported?

Jared Jennings http://jaredjennings.org

On Wed, Apr 3, 2013 at 7:56 AM, Jonathan notifications@github.com wrote:

Guys, I'm very new to running my own server, so please sorry if I'm asking something that's obvious.

Did libmono-complete install, tried runtime 4, 2, and no runtime specification. I still get the same errors shown below... no matter what. Any ideas?

joni@1datapoint:~/rainy$ mono --runtime=v2.0 Rainy.exe -c settings.conf WARNING: The runtime version supported by this application is unavailable. Using default runtime: v1.1.4322

\ (Rainy.exe:7601): WARNING **: The class System.Collections.Generic.Dictionary`2 could not be loaded, used in mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

Unhandled Exception: System.TypeLoadException: Could not load type 'Rainy.MainClass' from assembly 'Rainy, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'. joni@1datapoint:~/rainy$

— Reply to this email directly or view it on GitHub< https://github.com/Dynalon/Rainy/issues/19> .

— Reply to this email directly or view it on GitHubhttps://github.com/Dynalon/Rainy/issues/19#issuecomment-15846771 .

trepidity commented 11 years ago

My take on this is that you will need the 2.10 version of Mono. Since Rainy is configured for .net version 4.0. http://packages.qa.debian.org/m/mono.html

Jared

On Apr 3, 2013, at 11:03 AM, Jonathan notifications@github.com wrote:

\ (Rainy.exe:19060): WARNING **: The class System.Collections.Generic.Dictionary`2 could not be loaded, used in mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

Dynalon commented 11 years ago

Jared is right, you definitely need mono 2.10.x to run Rainy, AND you always need the 4.0 runtime (--runtime=v4.0) installed.

jonpolak commented 11 years ago

I see the link to the debian site... is there a way to change the sources file so that the system puts on required version of mono?

THANK YOU

Jonathan Mobile: +1 416 774 8018

On Wed, Apr 3, 2013 at 2:24 PM, Jared notifications@github.com wrote:

My take on this is that you will need the 2.10 version of Mono. Since Rainy is configured for .net version 4.0. http://packages.qa.debian.org/m/mono.html

Jared

On Apr 3, 2013, at 11:03 AM, Jonathan notifications@github.com wrote:

\ (Rainy.exe:19060): WARNING **: The class System.Collections.Generic.Dictionary`2 could not be loaded, used in mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

Reply to this email directly or view it on GitHubhttps://github.com/Dynalon/Rainy/issues/19#issuecomment-15854351 .

Dynalon commented 11 years ago

If you compile from source, a check of the mono version could be possible (is present in the makefile but currently commented out). If you run the binary, there is no way to tell the user that mono is too old, as an old mono version will fail before the program flow is handed over to the rainy executable.