JustArchiNET / ArchiSteamFarm

C# application with primary purpose of farming Steam cards from multiple accounts simultaneously.
Apache License 2.0
11.29k stars 1.05k forks source link

Issue when using Mono #184

Closed MosesHe closed 8 years ago

MosesHe commented 8 years ago

Sorry. I clicked the comment by mistake when I didn't finish typing. Here is the issue.

When I use command "mono ACF.exe" on my Raspberry Pi, I got this problem.

root@raspberrypi:/home/pi/Downloads/ASF# sudo mono ASF.exe

Unhandled Exception: System.TypeInitializationException: The type initializer for 'ArchiSteamFarm.Program' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. File name: 'System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' --- End of inner exception stack trace --- [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'ArchiSteamFarm.Program' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. File name: 'System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' --- End of inner exception stack trace ---

What should I do?

MosesHe commented 8 years ago

And here is the mono version. Mono JIT compiler version 4.2.3 (Stable 4.2.3.4/832de4b Wed Mar 16 13:34:50 UTC 2016) Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com TLS: __thread SIGSEGV: normal Notifications: epoll Architecture: armel,vfp+hard Disabled: none Misc: softdebug LLVM: supported, not enabled. GC: sgen

Pandiora commented 8 years ago

Looks like there is a problem with your version of mono. Archi will tell you this isn´t the Mono-Support. ;)

I´m using this Mono-Version: Mono JIT compiler version 4.2.2 (Stable 4.2.2.30/996df3c Mon Feb 15 17:30:30 UTC 2016)

Also have a look here on how to install Mono: https://github.com/JustArchi/ArchiSteamFarm/wiki/Mono

JustArchi commented 8 years ago

Raspberry Pi is non-standard ARM device, and you can't use Mono from Xamarin, as your device doesn't fully implement the standard of ARMv7.

Your best bet is switching to debian testing branch and using mono from there, and remember to use raspbian and not debian because it's exactly the same story.

Archi will tell you this isn´t the Mono-Support

Also this, while I'm always happy to help with Mono issues, potentially helping solving problems, this is out of the scope of ASF as you should be the one who ensures that Mono is working on your system. Raspberry PI is special case, as you're indeed trying to use latest Mono, but you can't because of your device.

JustArchi commented 8 years ago

So, in short

  1. Install clean latest Raspbian for your Raspberry Pi
  2. Switch "jessie" to "testing" in /etc/apt/sources.list
  3. Do apt-get update && apt-get dist-upgrade && apt-get autoremove --purge
  4. If you didn't break anything yet and your system works properly after reboot, do apt-get install mono-complete

The mono you will get from testing branch is NOT the latest Mono, but it's recent enough to run ASF without problems. Last time I checked it was version 4.2.1.

MosesHe commented 8 years ago

@JustArchi Thank you for your patient replies. I will have a try.:)

gggauravgandhi commented 8 years ago

I faced the same issue when updating my Ubuntu machine, thus upgrading mono. I did following two steps and solved.