[Mono-bugs] [Bug 50432][Maj] New - xsp unable to load machine.config file

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 12 Jan 2004 05:54:22 -0500 (EST)


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 gonzalo@ximian.com.

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

--- shadow/50432	2004-01-12 05:54:22.000000000 -0500
+++ shadow/50432.tmp.21706	2004-01-12 05:54:22.000000000 -0500
@@ -0,0 +1,129 @@
+Bug#: 50432
+Product: Mono/Runtime
+Version: unspecified
+OS: unknown
+OS Details: Windows XP
+Status: RESOLVED   
+Resolution: FIXED
+Severity: Unknown
+Priority: Major
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: dufrp@hotmail.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: xsp unable to load machine.config file
+BugsThisDependsOn: 50306[DUPLICATE]
+
+Description of Problem:
+So, I downloaded xsp-0.6.tar, extracted the files, and try to run xsp in
+bin directory:
+------------------------------
+C:\Documents and Settings\Paul\My Documents\xsp-0.6\bin>mono xsp.exe
+** Warning **: cannot find "C:\Program
+Files\Mono-0.28\etc\mono"\mono\machine.config
+Trying to load app config file...
+Listening on port: 8080
+Listening on address: 0.0.0.0
+Root directory: C:\Documents and Settings\Paul\My Documents\xsp-0.6\bin
+** Warning **: cannot find "C:\Program
+Files\Mono-0.28\etc\mono"\mono\machine.co
+nfig
+Trying to load app config file...
+Renewal called: System.Runtime.Remoting.Lifetime.Lease Returning: 00:02:
+----------------------------------
+But now, when I run the browser on http://localhost:8080/ I get:
+----------------------------------
+Server error in '/' application
+String returned by HttpRuntime.GetResourceStringFromResourceManager
+Description: Error processing request.
+
+Error Message: String returned by
+HttpRuntime.GetResourceStringFromResourceManager
+
+Stack Trace:
+
+System.Web.HttpException: String returned by
+HttpRuntime.GetResourceStringFromResourceManager
+in <0x00088> System.Web.HttpApplication:InitModules ()
+in <0x0005b> System.Web.HttpApplication:Startup
+(System.Web.HttpContext,System.Web.HttpApplicationState)
+in <0x0007e> System.Web.HttpApplicationFactory:InitializeFactory
+(System.Web.HttpContext)
+in <0x00094> System.Web.HttpApplicationFactory:GetInstance
+(System.Web.HttpContext)
+in <0x00140> System.Web.HttpRuntime:InternalExecuteRequest
+(System.Web.HttpWorkerRequest)
+--------------------------------------------------------------
+
+Expected Results:
+This warning should not appearered:
+** Warning **: cannot find "C:\Program
+Files\Mono-0.28\etc\mono"\mono\machine.config
+
+How often does this happen? 
+Always
+
+Additional Information:
+XSP 0.6, MONO 0.28 installed with MSI installer
+
+Workaround
+----------
+I changed this line in Windows/monobasepath.bat
+From:
+set MONO_CFG_DIR="C:\Program Files\Mono-0.28\etc\mono"
+To:
+set MONO_CFG_DIR=C:\Program Files\Mono-0.28\etc
+
+And this have fixed my problem.
+This was based on a suggestion of someone answering to this problem
+on ASP forum on:
+http://www.gotmono.com/cgi-bin/yabb/YaBB.pl?board=ASPX;action=display;num=1065956952
+
+This now works, at least on the very simple index.html I wrote.
+
+I think that XSP is wrong by adding \MONO to MONO_CFG_DIR and by
+not removing \" characters.
+
+------- Additional Comments From dufrp@hotmail.com  2003-11-01 10:06 -------
+I (Paul Dufresne) just saw that bug 50306 is about the same problem.
+But I did not notice it at first because summary was not about xsp,
+nor machine.config file.
+
+
+------- Additional Comments From Mark_Kuschnir@yahoo.co.uk  2003-11-04 01:26 -------
+*** Bug 50306 has been marked as a duplicate of this bug. ***
+
+------- Additional Comments From leonardo@bndes.gov.br  2003-11-07 12:43 -------
+I changed %Winbase%\monobase.bat just like asked, but am still getting
+this error:
+** Warning **: cannot find "C:\Arquivos de
+Programas\Mono-0.28\etc"\mono\machine.config
+
+instead of the previous:
+** Warning **: cannot find "C:\Arquivos de
+Programas\Mono-0.28\etc\mono"\mono\machine.config
+
+Besides, calling a simple html in the root dir gives the "String
+returned by HttpRuntime.GetResourceStringFromResourceManager" error.
+Are you sure you didnīt change anything else to make this workaround
+work ?
+I am using mono 0.28 for windows and xsp 0.6 on Windows XP
+Leonardo Peixoto - leonardo@bndes.gov.br
+
+
+
+------- Additional Comments From dufrp@hotmail.com  2003-11-09 12:48 -------
+Yes, I removed mono, then made it back.
+It works for me. It seems that you did not remove " characters
+according to your messages. Also, they looks reverse. Your first
+message: 
+** Warning **: cannot find "C:\Arquivos de
+Programas\Mono-0.28\etc"\mono\machine.config
+was what you suppose to get after, but like I said it seems you did
+not remove the " characters.
+
+------- Additional Comments From gonzalo@ximian.com  2004-01-12 05:54 -------
+It was an environment variable problem.