Bugzilla – Bug 318402
Mono 1.1.8 Windows Installer fails to run on Cygwin looking for machine.config
Last modified: 2007-09-15 21:24:46 UTC
---- Reported by danielmorgan@verizon.net 2005-06-28 20:58:35 MST ---- Description of Problem: ConfigurationException: Cannot find E:\Mono-1.1.8\etc:\mono\1.0\machine.config I have Mono 1.1.8 installed in E:\Mono-1.1.8 Notice the extra colon between E:\Mono-1.1.8\etc and \mono\1.0\machine.config Steps to reproduce the problem: 1. Compile and Run Test case on Cygwin 2. Compile and Run Test case on Mono Command Prompt (MS-DOS Command Prompt) Running in Cygwin: Administrator@danpc ~/monosvn/sqlsharpgtk/sqlsharpgtk $ mcs WinTest.cs Administrator@danpc ~/monosvn/sqlsharpgtk/sqlsharpgtk $ mono WinTest.exe Unhandled Exception: System.Configuration.ConfigurationException: 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 <0x00010> System.Configuration.ConfigurationSettings:get_AppSettings () in <0x00015> WinTest:Main (System.String[] args) Running in Mono 1.1.8 Command Prompt (MS-DOS COmmand Prompt): E:\cygwin\home\Administrator\monosvn\sqlsharpgtk\sqlsharpgtk>mono WinTest.exe App Setting for PubsConnStr is factory=System.Data.SqlClient;server=speedy;datab ase=pubs;uid=sa;pwd=mypassword How often does this happen? Always. Happens in Mono 1.1.7 and Mono 1.1.8 Windows Installers. Additional Information: Here is the test case: using System; using System.Collections; using System.Configuration; class WinTest { public static void Main(string[] args) { string appSettingName = "PubsConnStr"; string appSettingValue; appSettingValue = ConfigurationSettings.AppSettings[appSettingName]; Console.WriteLine("App Setting for {0} is {1}", appSettingName, appSettingValue); } } ---- Additional Comments From danielmorgan@verizon.net 2005-06-28 21:11:45 MST ---- Here is the WinTest.exe.config to go with the test case: <?xml version="1.0" encoding="utf-8" ?> <configuration> <configSections> </configSections> <appSettings> <add key="PubsConnStr" value="factory=System.Data.SqlClient;server=speedy;database=pubs;uid=sa;pwd=mypassword" /> <add key="OraConnStr" value="factory=System.Data.OracleClient;data source=testdb;user id=scott;password=tiger" /> </appSettings> </configuration> ---- Additional Comments From vargaz@gmail.com 2005-08-20 20:29:52 MST ---- *** This bug has been marked as a duplicate of https://bugzilla.novell.com/show_bug.cgi?id=MONO75815 *** Unknown bug field "cf_op_sys_details" encountered while moving bug <cf_op_sys_details>Windows XP SP2</cf_op_sys_details> Unknown operating system unknown. Setting to default OS "Other". This bug was marked DUPLICATE in the database it was moved from. Changing resolution to "MOVED"