none
Raspberry Pi (2 & 3), .net Framework and MS Access RRS feed

  • Frage

  • Hi

    I created with C# a class to handle a TCP-Server including Threads. Now i thought about to port the application to a Raspberry Pi 2 (or 3). My questions are:

    - Is it possible to 'move' the application to Windows 10 IoT without to use Windows 10 (i am working with Windows 8)

    - To use a MS Access Database it is necessary to install the 'AccessDatabaseEngine'. Is that possible on a Raspberry Pi?

    Thanks

    Dienstag, 15. März 2016 15:46

Antworten

  • Hello Clumsy Schlumpf,

    you are in the German Forum, that's why we should write in German. Nevertheless, my answer:

    To run a C# Application on a RaspberryPi you need either a working Linux distribution with a .NET runtime like mono or Windows 10 IoT. I think Win10 IoT is the best to use C# on RPs.

    But there run only UWP Apps, that means you need to write an app for Windows 10 (I am not sure if you need Windows 10 for development, but I think so). It is a bit difficult to transform your Desktop app to an UWP IoT app because not all APIs are available. For example, you cannot install the Access Driver Engine. And the APIs for networking are changed partly a lot.

    But on Linux, you have probably the same problem.


    Tom Lambert - .NET (C#) MVP
    Wozu Antworten markieren und für Beiträge abstimmen? Klicke hier.
    Nützliche Links: .NET Quellcode | C# ↔ VB.NET Konverter | Account bestätigen (Verify Your Account)
    Ich: Webseite | Code Beispiele | Facebook | Twitter | Snippets

    Dienstag, 15. März 2016 16:36
  • Hi,

    you would have to port your program from .Net to the Universal Windows Platform. Windows IoT Core runs on the ARM Platform where you can't use the full .Net Framework.

    You should be able to develop on Windows 8.1 with some restrictions:

    From https://msdn.microsoft.com/en-us/library/dn975273.aspx

    Windows 8.1 and Windows 7 support

    If you choose to develop Universal Windows apps with Visual Studio 2015 on a platform other than Windows 10, these are the restrictions:

    • Windows 8.1: You can’t run the app locally (only on a remote Windows 10 device). You can use the emulators in Visual Studio, but not the simulator.

    • Windows 7: You can’t run the app locally (only on a remote Windows 10 device). You can’t use the emulators or the simulator in Visual Studio either.

    You can only use the XAML designer if your development platform is Windows 10.

    I don't think you will be able to use MS Access with you UWP app on IoT core. I don't know of a library for MS Access.

    Hope this helps,

    Malte

    Dienstag, 15. März 2016 16:46

Alle Antworten

  • Hello Clumsy Schlumpf,

    you are in the German Forum, that's why we should write in German. Nevertheless, my answer:

    To run a C# Application on a RaspberryPi you need either a working Linux distribution with a .NET runtime like mono or Windows 10 IoT. I think Win10 IoT is the best to use C# on RPs.

    But there run only UWP Apps, that means you need to write an app for Windows 10 (I am not sure if you need Windows 10 for development, but I think so). It is a bit difficult to transform your Desktop app to an UWP IoT app because not all APIs are available. For example, you cannot install the Access Driver Engine. And the APIs for networking are changed partly a lot.

    But on Linux, you have probably the same problem.


    Tom Lambert - .NET (C#) MVP
    Wozu Antworten markieren und für Beiträge abstimmen? Klicke hier.
    Nützliche Links: .NET Quellcode | C# ↔ VB.NET Konverter | Account bestätigen (Verify Your Account)
    Ich: Webseite | Code Beispiele | Facebook | Twitter | Snippets

    Dienstag, 15. März 2016 16:36
  • Hi,

    you would have to port your program from .Net to the Universal Windows Platform. Windows IoT Core runs on the ARM Platform where you can't use the full .Net Framework.

    You should be able to develop on Windows 8.1 with some restrictions:

    From https://msdn.microsoft.com/en-us/library/dn975273.aspx

    Windows 8.1 and Windows 7 support

    If you choose to develop Universal Windows apps with Visual Studio 2015 on a platform other than Windows 10, these are the restrictions:

    • Windows 8.1: You can’t run the app locally (only on a remote Windows 10 device). You can use the emulators in Visual Studio, but not the simulator.

    • Windows 7: You can’t run the app locally (only on a remote Windows 10 device). You can’t use the emulators or the simulator in Visual Studio either.

    You can only use the XAML designer if your development platform is Windows 10.

    I don't think you will be able to use MS Access with you UWP app on IoT core. I don't know of a library for MS Access.

    Hope this helps,

    Malte

    Dienstag, 15. März 2016 16:46
  • Danke für Eure Antworten.

    Ich hatte leider vergessen zu erwähnen, dass der TCP-Server eine reine Konsolenanwendung ist. Es wird keinerlei Oberflächensystem genutzt. Das mit MS Access ist natürlich sehr schade. Wäre super gewesen, eine Serveranwendung auf dem Pi laufen zu lassen, welche Daten aus einer Access DB liefern kann. 

    Dienstag, 15. März 2016 16:57
  • Du kannst auch UWP Apps ohne UI auf dem PI starten (headless). Reine .Net Console Anwendungen werden wie gesagt auf Win 10 IoT Core nicht laufen. An die Variante mit Linux und Mono hatte ich nicht gedacht. Das wäre natürlich auch eine Variante. Damit könnte deine Anwendung laufen, aber ob die Library zum Zugriff auf Access ist ein anderes Thema.
    Dienstag, 15. März 2016 17:07
  • Ich werde wohl den Weg des geringsten Widerstandes gehen und eine preiswerte Office-Kiste nutzen. Damit sollte das machbar sein. Die Hauptgründe für den Pi waren halt der Preis und der geringe Stromverbrauch. 

    Linux ist keine Option, da mein Wissen über dieses OS irgendwo zwischen 0 und 0 liegt.

    Trotzdem besten Dank für Eure Mühen...


    Dienstag, 15. März 2016 18:36
  • Gerne. Ich würde mich freuen wenn du Toms oder meinen Post als Antwort markieren würdest. Das hilft das Forum übersichtlicher zu gestalten und wir freuen uns über die Punkte ;)
    Mittwoch, 16. März 2016 08:46