简体   繁体   中英

Error in Porting c# winform application to RaspberryPi using Mono Compiler

I am trying to run a windows form application developed on visual studio 2012 and C# on my raspberry pi using mono compiler. But i get the following error.

    System.IO.FileNotFoundException: Could not load file or assembly 
   'System.Data.SqlServerCe

The database file is also included in the same folder from where my .exe runs. How can I resolve this error?

Seems you can't do that. You're missing the Sql Server compact dll, and as stated here , it's a native library and cannot be used with mono.

I think you will have to convert db/queries in something which is compatible with linux environment like SQLite here or similar. Check also this from the raspberry forums

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM