[Mono-bugs] [Bug 75815][Wis] New - Database Program Fails to Run on Cygwin

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Aug 14 15:45:35 EDT 2005


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by danielmorgan at verizon.net.

http://bugzilla.ximian.com/show_bug.cgi?id=75815

--- shadow/75815	2005-08-14 15:45:35.000000000 -0400
+++ shadow/75815.tmp.4214	2005-08-14 15:45:35.000000000 -0400
@@ -0,0 +1,104 @@
+Bug#: 75815
+Product: Mono: Runtime
+Version: 1.1
+OS: 
+OS Details: Windows XP Pro SP2
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: JIT
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: danielmorgan at verizon.net               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Database Program Fails to Run on Cygwin
+
+Description of Problem:
+
+Running a simple database program runs in a Mono Command Prompt on Mono
+1.1.8 and 1.1.8.3, but fails to complete when running in Cygwin .
+
+Steps to reproduce the problem:
+1. Compile test case
+2. Run on either Mono 1.1.8 or Mono 1.1.8.3 in Cygwin
+3. Run on either Mono 1.1.8 or Mono 1.1.8.3 in Mono Command Prompt
+
+Actual Results:
+
+On Cygwin using Mono 1.1.8:
+
+Administrator at danpc /cygdrive/e
+$ mono Test.exe
+Test Begin...
+
+Unhandled Exception: System.TypeInitializationException: An exception was
+thrown
+ by the type initializer for System.Net.Dns --->
+System.Configuration.Configurat
+ionException: Cannot find E:\Mono-1.1.8\etc:\mono\1.0\machine.config ()
+in <0x000a6> System.Configuration.DefaultConfig:Init ()
+in <0x0000d> System.Configuration.DefaultConfig:GetConfig (System.String
+section
+Name)
+in <0x0001a> System.Configuration.ConfigurationSettings:GetConfig
+(System.String
+ sectionName)
+in <0x000b5> System.Net.Sockets.Socket:CheckProtocolSupport ()
+in <0x00007> System.Net.Dns:.cctor ()--- End of inner exception stack trace ---
+
+in <0x00000> <unknown method>
+in <0x00027> Mono.Data.Tds.Protocol.TdsConnectionParameters:.ctor ()
+in <0x00032> System.Data.SqlClient.SqlConnection:.ctor (System.String
+connection
+String)
+in (wrapper remoting-invoke-with-check)
+System.Data.SqlClient.SqlConnection:.cto
+r (string)
+in <0x0002d> Test:Main (System.String[] args)
+
+On Cygwin using Mono 1.1.8.3 - notice it never completes, it just exits:
+
+$ mono Test.exe
+Test Begin...
+
+
+On Mono Command Prompt using Mono 1.1.8 or Mono 1.1.8.3:
+
+E:\>mono Test.exe
+Test Begin...
+Test Done.
+
+
+Expected Results:
+
+Test Begin...
+Test Done.
+
+
+How often does this happen? 
+
+All the time.
+
+Additional Information:
+
+Download the Mono Combined Installer for Windows 1.1.8 or 1.1.8.3.
+
+// Test.cs
+// mcs Test.cs /r:System.Data.dll
+using System;
+using System.Data;
+using System.Data.SqlClient;
+
+public class Test {
+	public static void Main (string[] args) {
+		Console.WriteLine("Test Begin...");
+		SqlConnection con = new
+SqlConnection("server=localhost;database=pubs;user id=sa;password=mypass");
+		con.Open();			
+		con.Close();
+		Console.WriteLine("Test Done.");
+	}
+}


More information about the mono-bugs mailing list