I am unable to add three needed text files into a web setup distribution.
Application runs fine in debug mode. I have placed the three files into the
setup project and deployed it to my localhost. When the object runs from the
localhost, the three files cannot be found. Can anyone make a suggestion
regarding what to look for given the error listed below? (terra.txt is the
first of three text files the program requires).
************** Exception Text **************
System.IO.FileNotFoundException: Could not find file 'C:\Documents and
Settings\JRL\Local
Settings\Apps\2.0\GVWXDMV4.LHD\RAO1DOYR.CKV\city.. tion_eb7f923ed383e5dd_0001.0000_cea16716b569b101\t erra.txt'.
File name: 'C:\Documents and Settings\JRL\Local
Settings\Apps\2.0\GVWXDMV4.LHD\RAO1DOYR.CKV\city.. tion_eb7f923ed383e5dd_0001.0000_cea16716b569b101\t erra.txt'
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.StreamReader..ctor(String path, Encoding encoding, Boolean
detectEncodingFromByteOrderMarks, Int32 bufferSize)
at System.IO.StreamReader..ctor(String path)
at CityFind.cFlatData.FlatFileDataSource(String sFile)
at CityFind.CZLookup.get_Cities()
at CityFind.CZLookup.get_DV()
at CityFind.CZLookup.btnFind_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventAr gs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)
--
Regards,
Jamie