[Mono-devel-list] ASPX Compillation error

Slava Akhmechet vakhmechet at intellectconsulting.com
Mon Jul 14 15:34:35 EDT 2003

I forgot to mention in my original post that the code is probably generated
incorrectly by mono aspx compiler. The least I can say is that
__BuildControl_lblMessage() function is not written by me :) I do not set
FontInfo.Names property anywhere in my code. Here's how
lblMessage is declared in aspx code:

<asp:Label id="lblMessage" runat="server" Font-Names="Garamond"></asp:Label>

I omitted some other attributes as they're not relevant to the problem at
hand. My guess is that Font-Names requires a coma separated list of names,
and the aspx compiler is supposed to parse it, turn it into an array of
strings and then assign it to FontInfo.Names property in

I doubt recompiling the dlls has anything to do with it, as the code in
question is being generated at page request time by mono aspx compiler.

----- Original Message ----- 
From: "Chris Day" <ChrisD at monkey.biz>
To: <vakhmechet at intellectconsulting.com>
Sent: Monday, July 14, 2003 3:10 AM
Subject: [technical] RE: [Mono-devel-list] ASPX Compillation error

This sooo shouldn't work under windows, ergo from msdn

FontInfo.Names Property

public string[] Names {get; set;}

Property Value
An ordered array of font names.


Maybe under windows you were doing __ctrl.Font.Name = "Garamond";


> -----Original Message-----
> From: vakhmechet at intellectconsulting.com
> [mailto:vakhmechet at intellectconsulting.com]
> Sent: Monday, 14 July 2003 5:04 PM
> To: mono-devel-list at lists.ximian.com
> Subject: [Mono-devel-list] ASPX Compillation error
> Hello,
> This is my first post to this list and I would like to thank
> mono developers for bringing such a great product.
> I am currently toying with getting our application to run on
> mono. After installing the 0.25 release along with 0.4 XSP
> server I ran into a problem. Requesting one of the pages of
> the application retuns the following error:
> Description: Error compiling a resource required to service
> this request. Review your source file and modify it to fix this error.
> Error message: /tmp/tmp74adc8b1.cs(85,0) : error CS0029:
> Cannot convert implicitly from `string' to `string[]'
> (0,0) : error failed: 1 error(s), 0 warnings
> The code that causes the error is listed below:
> Line 78:         private System.Web.UI.Control
> __BuildControl_lblMessage() {
> Line 79:             System.Web.UI.WebControls.Label __ctrl;
> Line 80:             __ctrl = new System.Web.UI.WebControls.Label();
> Line 81:             this.lblMessage = __ctrl;
> Line 82:             __ctrl.ID = "lblMessage";
> Line 83:             __ctrl.Font.Size =
> System.Web.UI.WebControls.FontUnit.Parse("X-Small",
> System.Globalization.CultureInfo.InvariantCulture);
> Line 84:             __ctrl.ForeColor = System.Drawing.Color.Red;
> Line 85:             __ctrl.Font.Names = "Garamond";  // ***THIS LINE
> Line 86:             return __ctrl;
> Line 87:         }
> Note, this code runs flawlessly on both versions of MS .NET
> Framework on Windows. I did not recompile codebehind with
> mono as I do not yet have a good IDE running on Linux. The
> dlls were copied from MS Visual Studio 2003 build.
> Thanks in advance. _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-> devel-list

More information about the Mono-devel-list mailing list