Last post Jan 07, 2011 03:53 AM by shabirhakim1
Jan 07, 2011 03:41 AM|vijarvind|LINK
I have xml file located under project folder. When I try write on that I get access denied error. I have give write permission to all user on computer including aspnet but still same error. Please help me and let me know what I am missing.
The synopsis of code is
Dim strPath As String
Dim objWriter As XmlTextWriter
strPath = Server.MapPath("../FlashFiles/myData.xml")
objWriter = New XmlTextWriter(strPath, System.Text.Encoding.Default)
Catch ex As Exception
Jan 07, 2011 03:53 AM|shabirhakim1|LINK
you seem to write directly to a folder object.just specify a valid filename for that routine to work.
Dim strPath As String = "../FlashFiles/myData.xml"