[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.


--- 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 Details: Windows XP Pro SP2
+Status: NEW   
+Priority: Wishlist
+Component: JIT
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: danielmorgan at verizon.net               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+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, 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 in Cygwin
+3. Run on either Mono 1.1.8 or Mono 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
+ by the type initializer for System.Net.Dns --->
+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
+in <0x0001a> System.Configuration.ConfigurationSettings:GetConfig
+ 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
+in (wrapper remoting-invoke-with-check)
+r (string)
+in <0x0002d> Test:Main (System.String[] args)
+On Cygwin using Mono - notice it never completes, it just exits:
+$ mono Test.exe
+Test Begin...
+On Mono Command Prompt using Mono 1.1.8 or Mono
+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
+// 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