[Mono-list] Problem with multiple web applications

Chris Turchin chris@turchin.net
Tue, 21 Sep 2004 20:59:56 +0200


Hi,=20

i believe this is a problem with threads and appdomains. it is related
to these bugs:

http://bugzilla.ximian.com/show_bug.cgi?id=3D50049
http://bugzilla.ximian.com/show_bug.cgi?id=3D55978 (the one you found)
http://bugzilla.ximian.com/show_bug.cgi?id=3D60445

I noticed it in 1.0.1 still also and am running from cvs again where I
do not seem to be experiencing it anymore. however, bug 50049 (which is
the bug which these other two are marked as duplicates of) is still
open, so i am not sure if it is really fixed.=20

lupus or gonzalo can probably say more to that.

regards,
--chris

On Tue, 2004-09-21 at 18:19 +0000, Francisco Carpe Garc=C3=ADa wrote:
> Hello,
>=20
> I'm triying to port my applications written with .net 1.1 to mono. I`m us=
ing=20
> Fedora Core 2 and mono 1.0.1, but I get a problem that I think it's about=
=20
> executing multiple web applications on xsp server. I have two application=
, a=20
> "core" aplication that provides a navigation frames and suports aplicatio=
n's=20
> security (permission, roles, etc), and a "test" application that is acces=
ed=20
> from a link existing in "core" application, and therefore, the "core"=20
> application is loaded first. When I get "test" application from "core"=20
> application I obtain the following error when I execute a postback in a w=
eb=20
> form (the first time, no postback, the web form is loaded OK):
>=20
> System.FormatException: Error parsing 424px
> in <0x0026c> System.Web.UI.WebControls.Unit:.ctor=20
> (string,System.Globalization.CultureInfo,System.Web.UI.WebControls.UnitTy=
pe)
> in <0x00015> System.Web.UI.WebControls.Unit:.ctor=20
> (string,System.Globalization.CultureInfo)
> in <0x00027> System.Web.UI.WebControls.Unit:Parse=20
> (string,System.Globalization.CultureInfo)
> in <0x000f6> System.Web.UI.WebControls.UnitConverter:ConvertFrom=20
> (System.ComponentModel.ITypeDescriptorContext,System.Globalization.Cultur=
eInfo,object)
> in <0x00027> System.ComponentModel.TypeConverter:ConvertFrom (object)
> in <0x00134> ASP.default_aspx:__BuildControl_titulo ()
> in <0x000b0> ASP.default_aspx:__BuildControl_Form1 ()
> in <0x0005b> ASP.default_aspx:__BuildControlTree (System.Web.UI.Control)
> in <0x00045> ASP.default_aspx:FrameworkInitialize ()
> in <0x0009e> System.Web.UI.Page:ProcessRequest (System.Web.HttpContext)
> in <0x002eb> ExecuteHandlerState:Execute ()
> in <0x00084> StateMachine:ExecuteState=20
> (System.Web.HttpApplication/IStateHandler,bool&)
>=20
>=20
> In some others forms, when I do postback I get other type of error:
>=20
>=20
> System.NullReferenceException: Object reference not set to an instance of=
 an=20
> object
> in <0x0000f> System.Int32:FindSign=20
> (int&,string,System.Globalization.NumberFormatInfo,bool&,bool&)
> in <0x00427> System.Int32:Parse=20
> (string,System.Globalization.NumberStyles,System.IFormatProvider)
> in <0x00013> System.Int32:Parse (string,System.IFormatProvider)
> in <0x00019> System.Convert:ToInt32 (string,System.IFormatProvider)
> in <0x0000e> System.String:System.IConvertible.ToInt32=20
> (System.IFormatProvider)
> in <0x00473> System.Convert:ToType=20
> (object,System.Type,System.IFormatProvider)
> in <0x00069> System.Convert:ChangeType (object,System.Type)
> in <0x0020d>=20
> System.Web.Compilation.TemplateControlCompiler:GetExpressionFromString=20
> (System.Type,string)
> in <0x000e9>=20
> System.Web.Compilation.TemplateControlCompiler:AddCodeForPropertyOrField=20
> (System.Web.UI.ControlBuilder,System.Type,string,string,bool)
> in <0x001e3>=20
> System.Web.Compilation.TemplateControlCompiler:ProcessPropertiesAndFields=
=20
> (System.Web.UI.ControlBuilder,System.Reflection.MemberInfo,string,string)
> in <0x003e0>=20
> System.Web.Compilation.TemplateControlCompiler:CreateAssignStatementsFrom=
Attributes=20
> (System.Web.UI.ControlBuilder)
> in <0x0014b>=20
> System.Web.Compilation.TemplateControlCompiler:CreateControlTree=20
> (System.Web.UI.ControlBuilder,bool,bool)
> in <0x00494>=20
> System.Web.Compilation.TemplateControlCompiler:CreateControlTree=20
> (System.Web.UI.ControlBuilder,bool,bool)
> in <0x00494>=20
> System.Web.Compilation.TemplateControlCompiler:CreateControlTree=20
> (System.Web.UI.ControlBuilder,bool,bool)
> in <0x00494>=20
> System.Web.Compilation.TemplateControlCompiler:CreateControlTree=20
> (System.Web.UI.ControlBuilder,bool,bool)
> in <0x00050> System.Web.Compilation.TemplateControlCompiler:CreateMethods=
 ()
> in <0x0000a> System.Web.Compilation.PageCompiler:CreateMethods ()
> in <0x00148> System.Web.Compilation.BaseCompiler:GetCompiledType ()
> in <0x00251> System.Web.Compilation.AspGenerator:GetCompiledType ()
> in <0x00036> System.Web.UI.PageParser:CompileIntoType ()
> in <0x00018> System.Web.UI.TemplateControlParser:GetCompiledInstance ()
> in <0x00050> System.Web.UI.PageParser:GetCompiledPageInstance=20
> (string,string,System.Web.HttpContext)
> in <0x00011> System.Web.UI.PageHandlerFactory:GetHandler=20
> (System.Web.HttpContext,string,string,string)
> in <0x0034e> System.Web.HttpApplication:CreateHttpHandler=20
> (System.Web.HttpContext,string,string,string)
> in <0x0011f> CreateHandlerState:Execute ()
> in <0x00084> StateMachine:ExecuteState=20
> (System.Web.HttpApplication/IStateHandler,bool&
>=20
>=20
> Nevertheless, if I access directly to "test" application without use the=20
> link present in "core" application I don`t get any error (the "core"=20
> application in this case is not loaded).
>=20
> I have finding some information about this issue, and I have found some=20
> information about a bug quite similar to my error (it`s bugzilla report i=
s=20
> http://bugzilla.ximian.com/show_bug.cgi?id=3D55978), but that nowadays is=
=20
> closed as resolved. There are a thread in this list talking about this bu=
g=20
> (http://lists.ximian.com/archives/public/mono-list/2004-June/021629.html)=
.
>=20
> Could anybody tell me if my error could be a new bug related with the one=
 I=20
> have mentioned?
>=20
> Thanks very much,
>=20
> Paco Carpe.
>=20
> _________________________________________________________________
> =C2=BFEst=C3=A1s pensando en cambiar de coche? Todas los modelos de serie=
 y extras en=20
> MSN Motor. http://motor.msn.es/researchcentre/
>=20
> _______________________________________________
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
--=20
Chris Turchin <chris@turchin.net>