T
Tony Girgenti
Hello.
Developing a web site in VS2005, SP1, VB, .NET 2.0, ASP.NET 2.0 on XP Pro,
SP2.
I'm trying to write a file to the App_Data folder in my project using:
Dim docPath As String = "~\App_Data\Trips.xml"
Using sw As StreamWriter = File.CreateText(docPath)
sw.WriteLine(doc.InnerXml)
sw.Close()
End Using
It gives me an exception as:
System.IO.DirectoryNotFoundException = {"Could not find a part of the path
'C:\Program Files\Microsoft Visual Studio
8\Common7\IDE\~\App_Data\Trips.xml'."}
I tried "\App_Data\Trips.xml", "App_Data\Trips.xml", "~App_Data\Trips.xml".
Any help would be gratefully appreciated.
Thanks,
Tony
Developing a web site in VS2005, SP1, VB, .NET 2.0, ASP.NET 2.0 on XP Pro,
SP2.
I'm trying to write a file to the App_Data folder in my project using:
Dim docPath As String = "~\App_Data\Trips.xml"
Using sw As StreamWriter = File.CreateText(docPath)
sw.WriteLine(doc.InnerXml)
sw.Close()
End Using
It gives me an exception as:
System.IO.DirectoryNotFoundException = {"Could not find a part of the path
'C:\Program Files\Microsoft Visual Studio
8\Common7\IDE\~\App_Data\Trips.xml'."}
I tried "\App_Data\Trips.xml", "App_Data\Trips.xml", "~App_Data\Trips.xml".
Any help would be gratefully appreciated.
Thanks,
Tony