G
Guest
Hi All,
I am using VB.NET 2003 and having problems with loading an xml file. Here's
my code:
Public Sub LoadXML()
Dim xmlDoc As New Xml.XmlDocument
xmlDoc.Load("C:\Databases.xml")
'more code follows here
End Sub
When I get to the line that loads the databases.xml file, I get this error
message:
An unhandled exception of type 'System.NotSupportedException' occurred in
system.xml.dll
Additional information: FileStream was asked to open a device that was not a
file. FileStream's constructors that take a String will only work with
devices that are really files. If you need support for devices like "com1:"
or "lpt1:", then call CreateFile yourself then use the FileStream
constructors that take an OS handle as an IntPtr.
Any ideas why? the file C:\Databases.xml does exist.
I am using VB.NET 2003 and having problems with loading an xml file. Here's
my code:
Public Sub LoadXML()
Dim xmlDoc As New Xml.XmlDocument
xmlDoc.Load("C:\Databases.xml")
'more code follows here
End Sub
When I get to the line that loads the databases.xml file, I get this error
message:
An unhandled exception of type 'System.NotSupportedException' occurred in
system.xml.dll
Additional information: FileStream was asked to open a device that was not a
file. FileStream's constructors that take a String will only work with
devices that are really files. If you need support for devices like "com1:"
or "lpt1:", then call CreateFile yourself then use the FileStream
constructors that take an OS handle as an IntPtr.
Any ideas why? the file C:\Databases.xml does exist.