Hi,
Using vb.net in my application I can use the following code to write a file as .xml and save it on the network

Dim sw As StreamWriter
Dim strPath = "G:\folder1\test"

sw = File.CreateText(strPath & ".XML") 'Create the XML file...
sw.Write("testdata")


Why can I not do the same task in ASP.NET?

Thanks