On Sun, 2007-05-06 at 22:15 -0700, mcmurphy120 wrote: > I have a simple .Net program compiled with VS2005 which I want to run in > Ubuntu. There is a mysql-connection which throws an exception when opening > (the database is installed and up of course):
[1] > I suppose the problem is that of course Ubuntu can't find the windows path > "C:\output.log". It seem that the Trace-Mechansim uses this path for default > output. That appears to be the case. > My question: Where is this path defined? I cannot find the piece of code > which tell the TextWriter to use "C:\output.log". Where can I change it? Based on the stack trace, the problem is the MySql.Data.MySqlClient.MySqlConnection constructor, which explicitly uses C:\output.log. Either MySql.Data.MySqlClient.MySqlConnection has this hard-coded, or MySql.Data.MySqlClient.MySqlConnection is reading some config file to get this filename. Either way, you'll need to talk to the MySql.Data maintainers. :-( - Jon [1] > Unhandled Exception: System.IO.IOException: Win32 IO returned 25. Path: > c:\output.log > at System.IO.Directory.Exists (System.String path) [0x00000] > 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.StreamWriter..ctor (System.String path, Boolean append, > System.Text.Encoding encoding, Int32 bufferSize) [0x00000] > at System.IO.StreamWriter..ctor (System.String path, Boolean append) > [0x00000] > at (wrapper remoting-invoke-with-check) System.IO.StreamWriter:.ctor > (string,bool) > at System.IO.File.AppendText (System.String path) [0x00000] > at System.Diagnostics.TextWriterTraceListener..ctor (System.String > fileName, System.String name) [0x00000] > at System.Diagnostics.TextWriterTraceListener..ctor (System.String > fileName) [0x00000] > at (wrapper remoting-invoke-with-check) > System.Diagnostics.TextWriterTraceListener:.ctor (string) > at MySql.Data.MySqlClient.MySqlConnection..ctor () [0x00000] > at MySql.Data.MySqlClient.MySqlConnection..ctor (System.String > connectionString) [0x00000] > at (wrapper remoting-invoke-with-check) > MySql.Data.MySqlClient.MySqlConnection:.ctor (string) > > _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
