Exception during execution

HomeForumsMonoBrick EV3 FirmwareException during execution

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #5671
    Author Image

    Hey, me again.
    I do have the following problem:
    When I compile my program with VisualStudio, I’m getting an error saying “Exception during execution” when I try to run it via the Brick.

    However, when I write the same Program with MonoDevelop (on my Raspberry Pi) everything works perfectly.

    Also when I run the VisualStudio program via SSH, everything works perfectly.
    That’s pretty confusing to me.
    I will use Xamarin/MonoDevelop if there’s no other solution, but I would prefer to use VisualStudio.

    The program is pretty simple:

    using System;
    using MonoBrickFirmware;
    using System.Threading;
    using MonoBrickFirmware.Display;
    namespace Ev3_framework4
        class Program
            static void Main(string[] args)
                Console.WriteLine("Hello World from Visual Studio");

    Using Mono on my pc also does not work.
    It could be beacuse of Mono and Visual Studio creating a .pdb file instead of a .mdb file in bin/debug. The Mono version on my Raspberry Pi, which I made the working version with, creates such a .mdb instead of the .pdb.

    EDIT 2:
    I don’t know what happened, but it’s working right now with my Visual Studio version using the Brick.

    • This topic was modified 6 years, 1 month ago by Author ImageSkyfighter65.
    • This topic was modified 6 years, 1 month ago by Author ImageSkyfighter65.
    Author Image

    Did you fix the same issue?

    Author Image

    I had the same problem – Exception with LcdConsole.WritreLine – and solved it:
    Downgrade your project in Visual Studio to “.NET Framework 4”.
    Maybe later versions also work – not tested.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Posted in

Make a donation