I created a new project for the Netduino Plus 2, running 4.3.1 (http://forums.netdui...-firmware-v431/) and made the led blink.
Works like a charm, obviously
However, as soon as I add a reference to System.Security.dll and try to deploy trouble kicks in.
The device is rebooted because it's not in the correct state and after that it shows up in
Windows as a device that is malfunctioning / cannot be recognized.
The only thing to do at this point is to reboot it in DFU mode and erase the application.
Removing the System.Security.dll reference solves the problem.
At first I thought it might be to big, but looking at the dll it's not that big (33k) and
the netduino plus 2 has 384kb available (?)
When adding a reference to System.IO.dll instead (27kb) there are no issues (just as an example).
(Also I'm wondering if System.Security.dll isn't already available as part of the firmware itself)
So... I have no idea what's causing the issues, any suggestions?