A
Abhishek
Hi! Everyone
I need to stream a file to get the information stored in it
my code is as under
FileStream siteFileStream=null;
XmlTextReader XmlRdr=null;
string fileName=http://online.abc.com/ServerDetails.xml;
//string fileName="C:/Documents and
Settings/Administrator/Desktop/aGOnlineServerDetails.xml",FileMode.Open";
siteFileStream = new
eName",FileMode.Open); --> This Line gives an exception
"System.ArgumentException: URI formats are not supported.\r\n at
System.IO.Path.GetFullPathInternal(String path)\r\n at
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access,
FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, Boolean
bFromProxy)\r\n at System.IO.FileStream..ctor(String path, FileMode
mode)\r\n at line 1287"
If I replace the http: path with the local file path it works perfectly
How can i stream this file if it is on the web. I can perfectly access this
file if i type the same path in ie.
Kindly help this is very very urgent
Regards
Abhishek
I need to stream a file to get the information stored in it
my code is as under
FileStream siteFileStream=null;
XmlTextReader XmlRdr=null;
string fileName=http://online.abc.com/ServerDetails.xml;
//string fileName="C:/Documents and
Settings/Administrator/Desktop/aGOnlineServerDetails.xml",FileMode.Open";
siteFileStream = new
eName",FileMode.Open); --> This Line gives an exception
"System.ArgumentException: URI formats are not supported.\r\n at
System.IO.Path.GetFullPathInternal(String path)\r\n at
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access,
FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, Boolean
bFromProxy)\r\n at System.IO.FileStream..ctor(String path, FileMode
mode)\r\n at line 1287"
If I replace the http: path with the local file path it works perfectly
How can i stream this file if it is on the web. I can perfectly access this
file if i type the same path in ie.
Kindly help this is very very urgent
Regards
Abhishek