[Mono-list] Troubles with starting wcf exe. Could not load type from assembly

nitrotron toddmetcalf at gmail.com
Thu May 22 06:01:58 UTC 2014


Hello,

I'm very new to this, so please be kind :-). Hopefully it's something
simple.

I'm attempting run my first WCF in mono. I've have this working in visual
studio/windows. I'm now trying to run it on my rasberryPi. However when I
run the command:

mono SerialSwitchServiceHost.exe I'm getting this error 

Could not load signature of
SerialPortSwitchService.SerialSwitchServiceHost:SendCommand due to: Could
not load file or assembly or one of its dependencies.
Could not load signature of
SerialPortSwitchService.ArduinoSelfHost:SendCommand due to: Could not load
file or assembly or one of its dependencies.

Unhandled Exception:
System.TypeLoadException: Could not load type
'SerialPortSwitchService.SerialSwitchServiceHost' from assembly
'SerialSwitchServiceHost, Version=0.0.0.0, Culture=neutral,
PublicKeyToken=null'.
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: Could not load
type 'SerialPortSwitchService.SerialSwitchServiceHost' from assembly
'SerialSwitchServiceHost, Version=0.0.0.0, Culture=neutral,
PublicKeyToken=null'.


The steps I took before this were.
1. FTP'ed my cs and dlls to a my Rasberry Pi.
2. Peformed the following compile command:
gmcs SerialSwitchServiceHost.cs -pkg:wcf -r:bin/Debug/my.dll
3. After compiled with no errors, ran:
 mono SerialSwitchServiceHost,exe 



--
View this message in context: http://mono.1490590.n4.nabble.com/Troubles-with-starting-wcf-exe-Could-not-load-type-from-assembly-tp4662908.html
Sent from the Mono - General mailing list archive at Nabble.com.


More information about the Mono-list mailing list