[Mono-bugs] [Bug 39331][Wis] New - Attempt to create second application host generated error.

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Fri, 7 Mar 2003 14:05:34 -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 ztashev@openlinksw.co.uk.

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

--- shadow/39331	Fri Mar  7 14:05:34 2003
+++ shadow/39331.tmp.32561	Fri Mar  7 14:05:34 2003
@@ -0,0 +1,74 @@
+Bug#: 39331
+Product: Mono/Class Libraries
+Version: unspecified
+OS: Red Hat 7.2
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: System.Web
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: ztashev@openlinksw.co.uk               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Attempt to create second application host generated error. 
+
+Please fill in this template when reporting a bug, unless you know what 
+you are doing.
+Description of Problem:
+
+Attempt to create second application host generated error. 
+
+Steps to reproduce the problem:
+1. Play attached diff against server.cs (xsp).
+2. 
+3. 
+
+Actual Results:
+On startup is generated error:
+Unhandled Exception: System.NullReferenceException: A null value was found 
+where n object instance was required
+
+Expected Results:
+Some code on Windows (scs) work fine.
+
+How often does this happen? 
+Every time.
+
+Additional Information:
+Boot created domains is not worked property.
+
+The diff:
+Index: server.cs
+===================================================================
+RCS file: /mono/xsp/server/server.cs,v
+retrieving revision 1.7
+diff -u -r1.7 server.cs
+--- server.cs	17 Feb 2003 21:03:24 -0000	1.7
++++ server.cs	7 Mar 2003 18:29:30 -0000
+@@ -12,6 +12,10 @@
+ using System.Diagnostics;
+ using System.IO;
+ using System.Web.Hosting;
++using System.Reflection;
++using System.Runtime.CompilerServices;
++
++[assembly: AssemblyKeyFile(@"test.snk")]
+ 
+ namespace Mono.ASPNET
+ {
+@@ -87,7 +91,9 @@
+ 			
+ 			Type type = typeof (XSPApplicationHost);
+ 			XSPApplicationHost host;
++			XSPApplicationHost host2;
+ 			host =  (XSPApplicationHost) 
+ApplicationHost.CreateApplicationHost (type, virtualDir, rootDir);
++			host2 =  (XSPApplicationHost) 
+ApplicationHost.CreateApplicationHost (type, "/virtdir2", rootDir);
+ 			host.SetListenAddress (port);
+ 			
+ 			Console.WriteLine ("Listening on port: {0}", port);