[Mono-list] Problem with multiple websites

Joseph Hill jhill@arcfocus.com
Fri, 22 Oct 2004 11:04:44 -0500 (CDT)


Hey Jeff,

A lot of people are having this issue, and it held us up for quite a
while.  It is caused by bug #50049:

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

Currently, to host the multiple demo projects at www.gotmono.net we're
working around the bug by forcing mono to create multiple socket instances
by using the MonoUnixSocket and MonoWapiDir directives.  You can read more
about it under ciop's comments in this thread:

http://www.gotmono.com/cgi-bin/yabb/YaBB.pl?board=ASPX;action=display;num=1093477549

Hope that helps,

Joseph Hill

> Message: 9
> Date: Thu, 21 Oct 2004 10:34:11 -0600
> From: Jeff Love <doclove@gmail.com>
> Reply-To: Jeff Love <doclove@gmail.com>
> To: mono-list@lists.ximian.com
> Subject: [Mono-list] Problem with multiple websites
>
> I haven't had any problems with mod_mono and ASP.Net until I tried to
> launch a second website. Many of the pages work on the second site,
> but some of the pages give me strange errors. Here is some of the
> background on the problem. I have two sites that are very similar
> except for some name and text changes. All pages are the same and most
> of the controls are the same for both sites. I use Code-Behind for the
> sites. The first site that I access of the two works fine and I get no
> problems. However once I try to access the other site I get errors. No
> matter which site I access first, the second site always gives the
> same errors. Here is an example of the error I get:
>
> System.FormatException: Error parsing 375px
> in [0x00147] (at
> /cvs/1-mono/mcs/class/System.Web/System.Web.UI.WebControls/Unit.cs:173)
> System.Web.UI.WebControls.Unit:.ctor
> (string,System.Globalization.CultureInfo,System.Web.UI.WebControls.UnitType)
> in [0x00004] (at
> /cvs/1-mono/mcs/class/System.Web/System.Web.UI.WebControls/Unit.cs:130)
> System.Web.UI.WebControls.Unit:.ctor
> (string,System.Globalization.CultureInfo)
> in [0x00004] (at
> /cvs/1-mono/mcs/class/System.Web/System.Web.UI.WebControls/Unit.cs:62)
> System.Web.UI.WebControls.Unit:Parse
> (string,System.Globalization.CultureInfo)
> in [0x00048] (at
> /cvs/1-mono/mcs/class/System.Web/System.Web.UI.WebControls/UnitConverter.cs:69)
> System.Web.UI.WebControls.UnitConverter:ConvertFrom
> (System.ComponentModel.ITypeDescriptorContext,System.Globalization.CultureInfo,object)
> in [0x00008] (at
> /cvs/1-mono/mcs/class/System/System.ComponentModel/TypeConverter.cs:66)
> System.ComponentModel.TypeConverter:ConvertFrom (object)
> in [0x0002d] (at /tmp/71884.0.cs:161)
> ASP.addlink_aspx:__BuildControl_m_txtLink ()
> in [0x0004e] (at /tmp/71884.0.cs:85) ASP.addlink_aspx:__BuildControl_Form1
> ()
> in [0x00013] (at /tmp/71884.0.cs:70)
> ASP.addlink_aspx:__BuildControlTree (System.Web.UI.Control)
> in [0x0001b] (at /tmp/71884.0.cs:198) ASP.addlink_aspx:FrameworkInitialize
> ()
> in [0x00040] (at
> /cvs/1-mono/mcs/class/System.Web/System.Web.UI/Page.cs:716)
> System.Web.UI.Page:ProcessRequest (System.Web.HttpContext)
> in [0x00091] (at
> /cvs/1-mono/mcs/class/System.Web/System.Web/HttpApplication.cs:444)
> ExecuteHandlerState:Execute ()
> in [0x0001e] (at
> /cvs/1-mono/mcs/class/System.Web/System.Web/HttpApplication.cs:708)
> StateMachine:ExecuteState
> (System.Web.HttpApplication/IStateHandler,bool&)
>
> Here is the code that it is accessing that is giving the problem:
>
> <asp:TextBox id="m_txtLink" runat="server" Width="375px"></asp:TextBox>
>
> I don't see any problems with this line of code.
>
> I'm not sure what the problem is or how I can fix this. Any suggestions?
>
> I am using mono 1.0.2 with xsp 1.0.2 and mod_mono 1.0.2 on a Redhat
> Linux 9 machine. Thanks for your help.
>
> --
> Jeff Love
> Webmaster
> EducationOnlineForComputers.com
> Intelinfo.com