luisurbinanet / gnudental

Automatically exported from code.google.com/p/gnudental
1 stars 0 forks source link

OD Rev 149: Unhandled Exception: System.IO.DirectoryNotFoundException #23

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Steps to reproduce:

0. export MONO_IOMAP=all (though this may not have been necessary)
1. http://opendental.carlier-online.be/source.html
2. http://opendental.carlier-online.be/using.html
except that instead of "create database opendental" I used "create database
opendental;" (note the added semi-colon) and instead of "mysql -h localhost
-u root < opendental.sql" I used "mysql -h localhost -u root -p <
opendental.sql" (note the added "-p" command option in cases where the
MySQL root account is configured with a password).

Expected results:
Open Dental runs

Actual results:
kevin@gnudental1 ~/gnudental $ opendental 

Unhandled Exception: System.IO.DirectoryNotFoundException: Could not find a
part of the path "/home/kevin/gnudental/ConversionFiles/convert_3_5_0.txt".
  at System.IO.FileStream..ctor (System.String name, FileMode mode,
FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous,
FileOptions options) [0x00000] 
  at System.IO.FileStream..ctor (System.String name, FileMode mode,
FileAccess access, FileShare share) [0x00000] 
  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor
(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
  at System.IO.File.OpenRead (System.String path) [0x00000] 
  at System.IO.StreamReader..ctor (System.String path, System.Text.Encoding
encoding, Boolean detect_encoding_from_bytemarks, Int32 buffer_size) [0x00000] 
  at System.IO.StreamReader..ctor (System.String path, System.Text.Encoding
encoding) [0x00000] 
  at (wrapper remoting-invoke-with-check) System.IO.StreamReader:.ctor
(string,System.Text.Encoding)
  at System.IO.File.ReadAllText (System.String path, System.Text.Encoding
enc) [0x00000] 
  at System.IO.File.ReadAllText (System.String path) [0x00000] 
  at OpenDental.ClassConvertDatabase.ExecuteFile (System.String fileName)
[0x00000] 
  at OpenDental.ClassConvertDatabase.To3_5_0 () [0x00000] 
  at OpenDental.ClassConvertDatabase.To3_4_24 () [0x00000] 
  at OpenDental.ClassConvertDatabase.To3_4_17 () [0x00000] 
  at OpenDental.ClassConvertDatabase.To3_4_16 () [0x00000] 
  at OpenDental.ClassConvertDatabase.To3_4_11 () [0x00000] 
  at OpenDental.ClassConvertDatabase.To3_4_10 () [0x00000] 
  at OpenDental.ClassConvertDatabase.To3_4_7 () [0x00000] 
  at OpenDental.ClassConvertDatabase.To3_4_0 () [0x00000] 
  at OpenDental.ClassConvertDatabase.To3_1_16 () [0x00000] 
  at OpenDental.ClassConvertDatabase.To3_1_13 () [0x00000] 
  at OpenDental.ClassConvertDatabase.To3_1_4 () [0x00000] 
  at OpenDental.ClassConvertDatabase.To3_1_3 () [0x00000] 
  at OpenDental.ClassConvertDatabase.To3_1_0 () [0x00000] 
  at OpenDental.ClassConvertDatabase.To3_0_5 () [0x00000] 
  at OpenDental.ClassConvertDatabase.To3_0_4 () [0x00000] 
  at OpenDental.ClassConvertDatabase.To3_0_3 () [0x00000] 
  at OpenDental.ClassConvertDatabase.To3_0_2 () [0x00000] 
  at OpenDental.ClassConvertDatabase.To3_0_1 () [0x00000] 
  at OpenDental.ClassConvertDatabase.To2_9_8 () [0x00000] 
  at OpenDental.ClassConvertDatabase.To2_9_5 () [0x00000] 
  at OpenDental.ClassConvertDatabase.To2_9_2 () [0x00000] 
  at OpenDental.ClassConvertDatabase.To2_9_1 () [0x00000] 
  at OpenDental.ClassConvertDatabase.To2_8_14 () [0x00000] 
  at OpenDental.ClassConvertDatabase.To2_8_10 () [0x00000] 
  at OpenDental.ClassConvertDatabase.To2_8_6 () [0x00000] 
  at OpenDental.ClassConvertDatabase.To2_8_3 () [0x00000] 
  at OpenDental.ClassConvertDatabase.To2_8_2 () [0x00000] 
  at OpenDental.ClassConvertDatabase.Convert (System.String fromVersion)
[0x00000] 
  at OpenDental.Prefs.ConvertDB () [0x00000] 
  at OpenDental.FormOpenDental.RefreshLocalData (InvalidTypes itypes,
Boolean isStartingUp) [0x00000] 
  at OpenDental.FormOpenDental.FormOpenDental_Load (System.Object sender,
System.EventArgs e) [0x00000] 
  at (wrapper delegate-invoke)
System.MulticastDelegate:invoke_void_object_EventArgs (object,System.EventArgs)
  at System.Windows.Forms.Form.OnLoad (System.EventArgs e) [0x00000] 
  at System.Windows.Forms.Form.OnCreateControl () [0x00000] 
  at System.Windows.Forms.Control.CreateControl () [0x00000] 
  at System.Windows.Forms.Control.SetVisibleCore (Boolean value) [0x00000] 
  at System.Windows.Forms.Form.SetVisibleCore (Boolean value) [0x00000] 
  at System.Windows.Forms.Control.set_Visible (Boolean value) [0x00000] 
  at (wrapper remoting-invoke-with-check)
System.Windows.Forms.Control:set_Visible (bool)
  at System.Windows.Forms.Application.RunLoop (Boolean Modal,
System.Windows.Forms.ApplicationContext context) [0x00000] 
  at System.Windows.Forms.Application.Run (System.Windows.Forms.Form
mainForm) [0x00000] 
  at OpenDental.FormOpenDental.Main () [0x00000] 
kevin@gnudental1 ~/gnudental $ 
kevin@gnudental1 ~/gnudental $ find .
.
./FreeDentalConfig.xml
./letter
./data
./data/G
./data/T
./data/J
./data/Q
./data/U
./data/D
./data/N
./data/W
./data/E
./data/X
./data/H
./data/R
./data/M
./data/B
./data/C
./data/A
./data/I
./data/O
./data/Z
./data/S
./data/L
./data/V
./data/F
./data/Y
./data/K
./data/P
./export
./openlog.txt
kevin@gnudental1 ~/gnudental $ 

Original issue reported on code.google.com by GNUden...@gmail.com on 12 Apr 2007 at 2:33

GoogleCodeExporter commented 8 years ago
Doing a:

"cp -ia  <SourceTree/ConversionFiles---in this case
opendental4.7/OpenDental/bin/Debug/ConversionFiles> <working directory---in 
this case
~/gnudental>"

solves this problem.

Original comment by GNUden...@gmail.com on 12 Apr 2007 at 2:41