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

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 1 Nov 2003 09:56:42 -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 dufrp@hotmail.com.

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

--- shadow/50432	2003-11-01 09:56:42.000000000 -0500
+++ shadow/50432.tmp.24466	2003-11-01 09:56:42.000000000 -0500
@@ -0,0 +1,87 @@
+Bug#: 50432
+Product: Mono/Runtime
+Version: unspecified
+OS: 
+OS Details: Windows XP
+Status: NEW   
+Resolution: 
+Severity: 
+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
+
+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.