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.FileN otFoundExceptio n: Could not find file 'C:\Documents and
Settings\JRL\Lo cal
Settings\Apps\2 .0\GVWXDMV4.LHD \RAO1DOYR.CKV\c ity..tion_eb7f9 23ed383e5dd_000 1.0000_cea16716 b569b101\terra. txt'.
File name: 'C:\Documents and Settings\JRL\Lo cal
Settings\Apps\2 .0\GVWXDMV4.LHD \RAO1DOYR.CKV\c ity..tion_eb7f9 23ed383e5dd_000 1.0000_cea16716 b569b101\terra. txt'
at System.IO.__Err or.WinIOError(I nt32 errorCode, String maybeFullPath)
at System.IO.FileS tream.Init(Stri ng path, FileMode mode, FileAccess
access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize,
FileOptions options, SECURITY_ATTRIB UTES secAttrs, String msgPath, Boolean
bFromProxy)
at System.IO.FileS tream..ctor(Str ing path, FileMode mode, FileAccess
access, FileShare share, Int32 bufferSize, FileOptions options)
at System.IO.Strea mReader..ctor(S tring path, Encoding encoding, Boolean
detectEncodingF romByteOrderMar ks, Int32 bufferSize)
at System.IO.Strea mReader..ctor(S tring path)
at CityFind.cFlatD ata.FlatFileDat aSource(String sFile)
at CityFind.CZLook up.get_Cities()
at CityFind.CZLook up.get_DV()
at CityFind.CZLook up.btnFind_Clic k(Object sender, EventArgs e)
at System.Windows. Forms.Control.O nClick(EventArg s e)
at System.Windows. Forms.Button.On Click(EventArgs e)
at System.Windows. Forms.Button.On MouseUp(MouseEv entArgs mevent)
at System.Windows. Forms.Control.W mMouseUp(Messag e& m, MouseButtons
button, Int32 clicks)
at System.Windows. Forms.Control.W ndProc(Message& m)
at System.Windows. Forms.ButtonBas e.WndProc(Messa ge& m)
at System.Windows. Forms.Button.Wn dProc(Message& m)
at System.Windows. Forms.Control.C ontrolNativeWin dow.OnMessage(M essage& m)
at System.Windows. Forms.Control.C ontrolNativeWin dow.WndProc(Mes sage& m)
at System.Windows. Forms.NativeWin dow.Callback(In tPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)
--
Regards,
Jamie
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.FileN otFoundExceptio n: Could not find file 'C:\Documents and
Settings\JRL\Lo cal
Settings\Apps\2 .0\GVWXDMV4.LHD \RAO1DOYR.CKV\c ity..tion_eb7f9 23ed383e5dd_000 1.0000_cea16716 b569b101\terra. txt'.
File name: 'C:\Documents and Settings\JRL\Lo cal
Settings\Apps\2 .0\GVWXDMV4.LHD \RAO1DOYR.CKV\c ity..tion_eb7f9 23ed383e5dd_000 1.0000_cea16716 b569b101\terra. txt'
at System.IO.__Err or.WinIOError(I nt32 errorCode, String maybeFullPath)
at System.IO.FileS tream.Init(Stri ng path, FileMode mode, FileAccess
access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize,
FileOptions options, SECURITY_ATTRIB UTES secAttrs, String msgPath, Boolean
bFromProxy)
at System.IO.FileS tream..ctor(Str ing path, FileMode mode, FileAccess
access, FileShare share, Int32 bufferSize, FileOptions options)
at System.IO.Strea mReader..ctor(S tring path, Encoding encoding, Boolean
detectEncodingF romByteOrderMar ks, Int32 bufferSize)
at System.IO.Strea mReader..ctor(S tring path)
at CityFind.cFlatD ata.FlatFileDat aSource(String sFile)
at CityFind.CZLook up.get_Cities()
at CityFind.CZLook up.get_DV()
at CityFind.CZLook up.btnFind_Clic k(Object sender, EventArgs e)
at System.Windows. Forms.Control.O nClick(EventArg s e)
at System.Windows. Forms.Button.On Click(EventArgs e)
at System.Windows. Forms.Button.On MouseUp(MouseEv entArgs mevent)
at System.Windows. Forms.Control.W mMouseUp(Messag e& m, MouseButtons
button, Int32 clicks)
at System.Windows. Forms.Control.W ndProc(Message& m)
at System.Windows. Forms.ButtonBas e.WndProc(Messa ge& m)
at System.Windows. Forms.Button.Wn dProc(Message& m)
at System.Windows. Forms.Control.C ontrolNativeWin dow.OnMessage(M essage& m)
at System.Windows. Forms.Control.C ontrolNativeWin dow.WndProc(Mes sage& m)
at System.Windows. Forms.NativeWin dow.Callback(In tPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)
--
Regards,
Jamie