I need to write string to an xml file in Silverlight. When I used the following code, the above mentioned exception "Attempt to access the method failed: System.IO.StreamWriter..ctor(System.String, Boolean)" has occurred.
using (StreamWriter sw = new StreamWriter("C:\Test.xml", false)) { sw.Write(root.ToString()); }
Can anyone help me out in doing writing to xml file in Silverlight?
Thanks & Regards Padma