G
Guest
Could not find a part of the path...
I have developed an application that has a filetype, Filename.llsx,
association. My problem is tha on some computers i get a
System.IO.DirectoryNotFoundException when i try to download files of my
filetypes from the internet.
Here is the code that tries to read the file:
Dim rd As New System.IO.StreamReader(fileName)
Dim myXmlDocument As New System.Xml.XmlDocument
myXmlDocument.Load(rd)
Here is the error stack:
System.IO.DirectoryNotFoundException:
Could not find a part of the path 'C:\Documents and
Settings\Mats-Erik\Lokala inställningar\Temporary Internet
Files\ContentUTF8.IE5\S9U70XI3\WebReport_2006-05-11-09-20-54[1].llsx'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess
access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize,
FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean
bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
access, FileShare share, Int32 bufferSize, FileOptions options)
at System.IO.StreamWriter.CreateFile(String path, Boolean append)
at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding
encoding, Int32 bufferSize)
at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding
encoding)
Thanks in advance!
I have developed an application that has a filetype, Filename.llsx,
association. My problem is tha on some computers i get a
System.IO.DirectoryNotFoundException when i try to download files of my
filetypes from the internet.
Here is the code that tries to read the file:
Dim rd As New System.IO.StreamReader(fileName)
Dim myXmlDocument As New System.Xml.XmlDocument
myXmlDocument.Load(rd)
Here is the error stack:
System.IO.DirectoryNotFoundException:
Could not find a part of the path 'C:\Documents and
Settings\Mats-Erik\Lokala inställningar\Temporary Internet
Files\ContentUTF8.IE5\S9U70XI3\WebReport_2006-05-11-09-20-54[1].llsx'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess
access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize,
FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean
bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess
access, FileShare share, Int32 bufferSize, FileOptions options)
at System.IO.StreamWriter.CreateFile(String path, Boolean append)
at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding
encoding, Int32 bufferSize)
at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding
encoding)
Thanks in advance!