I try to use FileStream (using the System.IO namespace), but I get an exception:
Attempt to access the method failed
Here is the code:
FileStream fs = new FileStream("file.txt", FileMode.Create);
I searched on microsoft.com and I found that this error is due to the fact that I am using the wrong library link.
But in my project, I compile with mscorlib.dll from the folder: C: \ Program Files (x86) \ Reference Assemblies \ Microsoft \ Framework \ Silverlight \ v4.0
I need some help, please.
source
share