Hi. Modified the code a little bit and the exception message has disappeared.
Here is the code block---->

XmlDocument xmldoc=new XmlDocument();
xmldoc.Load (filepath);
XmlNamespaceManager nmsmgr=new XmlNamespaceManager(xmldoc.NameTable);
nmsmgr.AddNamespace ("nmspc", "http://tempuri.org/";);
XmlNodeList xmlnl=xmldoc.SelectNodes ("//nmsmgr:UserName", nmsmgr);
username=xmlnl[0].InnerText.ToString();
UIAlertView uvm=new UIAlertView("Notification", ""+username.ToString ()+"
Authenticated!", null, "OK", null);
uvm.Show ();                                            
this.ash=new AssessmentsHome();
this.NavigationController.PushViewController (this.ash, true);

But the real issue I am having is that I am not being allowed to create the
xml file at runtime in the Personal folder, from which I am supposed to read
the values. There must be some issue with the read/write permissions of the
Personal folder which is denying me the privilege to create a directory
within the Personal folder and write the serialized xml output to it. What
to do now?

What are the things that I should check?

Thanks. 

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/XML-Serialization-and-writing-to-a-file-in-MOnoDevelop-with-C-tp4655459p4655532.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to