[Mono-devel-list] ASPX Compillation error

Ivan Hawkes blackhawk at ivanhawkes.com
Mon Jul 14 15:22:40 EDT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday 14 Jul 2003 8:04 am, vakhmechet at intellectconsulting.com wrote:

Hey there,

since I can't see an answer to this post I may as well chip in, hopefully 
someone will correct me if I'm wrong.

You really need to recompile those code behind files, as I don't think a 
windows dll is going to like running under Linux very much, what with it 
being a completely different OS and all. I could be wrong, and the Mono team 
could have done something incredible, but this is my suspicion.

Recompile the code behind files and build it into a DLL. I called mine 
Assembly.dll and put it in a directory called bin underneath my ASPX files 
:-) When I used XSP to run the ASPX it seemed to locate and use the DLL 
automagically.

Good luck!

> 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.
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iQIVAwUBPxMDA/r1e7bH1pzBAQK9qRAAggY7ciRE9OF3xU4lKx8If5NB5oMMHDN+
uIYcJzTfHi5JWVlNFdA6NnogiONVCqYfrcFtMpzBg8IFJEPa9iEiwCSAzLZqcTxZ
mUPWgKuqPv3OEXceHBwiMlOVkTbGrIb3uY+e0ExSWUBVxcbypjFNLGL3mGhZfJb0
upwibShIXyaylTHYubDeK5MdDm05ZR3UknKa4CmuoUUcpmN00hz/KgMudj7X+AwJ
+tugRiHpbvJkfkThbnA3kbOxZ7pcEd1h6qSPvmqiQ3yfYx3A1SaDGotj6dw8Dw/5
2ewJxv6KSuaNzYzvxzRz+NE0/wg+ikpXTzk09ohIcJmyikUS/DsNL5zxYPXkc6VG
F91+rXxaFMSGQMIHETONE+lSp1uaomsUOi4GXOpL8KJR4qlZKp2dt9mQ0ykH4fDX
nKq2N45JLYB7PJDHO7j0dmyJZBCXH/ludRv3ZVTTHTBOBDYE/srYegNNXfl0CwtN
WVS0WwGj96oIYdsYidzTpNc49itqBkHBOpz0l8kSrVikY3UEc/KVgYWbMYwYRNfh
auBy98d3LnObNMSGFUg6rj+uHvyUg9mx+l772tVcexop1+Nv71NsB+CfYfQ4jRy0
Qu3KWJHryeb+dzyDrnVhZRPjwUlTb+IY7qE73IoRKEu05r8PEvaBc+QVVA6n4pp0
OUF+e95NJnk=
=S5Qc
-----END PGP SIGNATURE-----




More information about the Mono-devel-list mailing list