[Mono-bugs] [Bug 75298][Nor] New - Configuration error when
starting asp-state
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Fri Jun 17 14:42:40 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 rafaelteixeirabr at hotmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=75298
--- shadow/75298 2005-06-17 14:42:40.000000000 -0400
+++ shadow/75298.tmp.14426 2005-06-17 14:42:40.000000000 -0400
@@ -0,0 +1,84 @@
+Bug#: 75298
+Product: Mono: Tools
+Version: 1.0
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: XSP
+AssignedTo: gonzalo at ximian.com
+ReportedBy: rafaelteixeirabr at hotmail.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Configuration error when starting asp-state
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+$ asp-state
+
+Unhandled Exception: System.Runtime.Remoting.RemotingException:
+Configuration file 'asp_state.exe.config' could not be loaded: File not found.
+in <0x000ff> System.Runtime.Remoting.RemotingConfiguration:ReadConfigFile
+(System.String filename)
+in <0x0004e> System.Runtime.Remoting.RemotingConfiguration:Configure
+(System.String filename)
+in <0x0000c> Mono.ASPNET.Tools.StateServer:Main (System.String[] args)
+
+Note that the correct config file should be asp-state.exe.config. If I
+rename the config file to the wrongly expected filename the server runs.
+
+How often does this happen?
+
+Always even with SVN HEAD.
+
+Additional Information:
+
+grepping a bit we find:
+
+$ grep asp_state *.cs
+asp_state.cs: RemotingConfiguration.Configure ("asp_state.exe.config");
+
+Will attach a patch that makes it smart about the config file name (what
+will make asp-state2 work with the correct config file) and makes things a
+bit more verbose to help first timers like me.
+
+Sample runs of patched asp-state:
+
+$ asp-state x
+ERROR: asp-state doesn't recognize any command line arguments!!!
+
+Usage is:
+ asp-state
+
+It loads the remoting configuration file (will try from
+/usr/lib/mono/1.0/asp-state.exe.config)
+and works until <Enter> is pressed.
+
+$ asp-state
+Loaded configuration from /usr/lib/mono/1.0/asp-state.exe.config that contains
+=============================================
+<?xml version="1.0" encoding="utf-8" ?>
+<configuration>
+ <system.runtime.remoting>
+ <application name="ASP.NET State Server">
+ <service>
+ <wellknown mode="Singleton"
+
+type="System.Web.SessionState.RemoteStateServer, System.Web"
+ objectUri="StateServer" />
+ </service>
+ <channels>
+ <channel ref="tcp" port="42424" />
+ </channels>
+ </application>
+ </system.runtime.remoting>
+</configuration>
+
+
+=============================================
+Press <Enter> to stop...
More information about the mono-bugs
mailing list