Hi all,
I upgraded the firmware of my Netduino Plus from 4.1.0.6 to the new firmware introduced in this thread.
Now, I am writing something on a 4GB MicroSD, but I faced with the following errors. Would you please help me solve this problem?
My Code:
using System;using System.IO;using Microsoft.SPOT.IO;using System.Net;using System.Net.Sockets;using System.Threading;using Microsoft.SPOT;using Microsoft.SPOT.Hardware;using SecretLabs.NETMF.Hardware;using SecretLabs.NETMF.Hardware.NetduinoPlus;namespace NetduinoPlusApplication1{ public class Program { static string path = "SDSWEIoT.log"; public static FileStream mem; public static void Main() { try { mem = new FileStream(path, FileMode.Append, FileAccess.Write, FileShare.None, 512); } catch (Exception e) { Debug.Print(e.ToString()); } } }}
The received exceptions:
A first chance exception of type 'System.NotSupportedException' occurred in Microsoft.SPOT.IO.dllA first chance exception of type 'System.NotSupportedException' occurred in System.IO.dllSystem.NotSupportedException
Thanks in advance,
Mohammad