[Mono-devel-list] ASPX Compillation error

vakhmechet at intellectconsulting.com vakhmechet at intellectconsulting.com
Mon Jul 14 03:04:11 EDT 2003


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
CAUSES THE PROBLEM***
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.



More information about the Mono-devel-list mailing list