Bugzilla – Bug 311564
[AppDomain] objects created in other domain run in the current domani
Last modified: 2007-09-15 21:24:46 UTC
---- Reported by gonzalo@ximian.com 2002-09-25 22:31:17 MST ---- Steps to reproduce the problem: 1. Compile and run ------ using System; class A : MarshalByRefObject { public string Data { get { return AppDomain.CurrentDomain.GetData ("integer").ToString (); } } } class C { static void Main () { AppDomain current = AppDomain.CurrentDomain; current.SetData ("integer", 0); AppDomain domain = AppDomain.CreateDomain ("otro"); domain.SetData ("integer", 1); object o = domain.GetData ("integer"); A a = (A) domain.CreateInstanceAndUnwrap (typeof (A).Assembly.FullName, "A"); Console.WriteLine (a.Data); } } --------- Actual Results: 0 Expected Results: 1 Additional Information: This bug prevents ApplicationHost creation in System.Web ---- Additional Comments From gonzalo@ximian.com 2003-02-04 16:34:02 MST ---- Patrik fixed it. This bug blocked bug(s) 36262 36280 36598.