Saturday, November 9, 2013

C# Running on Ubuntu

I have some c# code using the tweetsharp library and when I run it with mono it gives this error:



Missing method .ctor in assembly /home/freddy/rubystack-1.9.3-16/apache2/htdocs/yrs/cbackend/TweetSharp.dll, type System.Runtime.CompilerServices.ExtensionAttribute Can't find custom attr constructor image: /home/freddy/rubystack-1.9.3-16/apache2/htdocs/yrs/cbackend/TweetSharp.dll mtoken: 0x0a000019 Missing method ToList in assembly /home/freddy/rubystack-1.9.3-16/apache2/htdocs/yrs/cbackend/ConsoleApplication1.exe, type System.Linq.Enumerable Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. File name: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' [ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Could not load file or assembly 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. File name: 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'




The exe was generated by Visual Studio, I put onto the server the contents of the debug folder, the tweetsharp library is included and the code works fine in Visual Studio, any help would be great, thanks!
Full Post

No comments:

Post a Comment