[Mono-list] Mono ASP.NET and Globalization issue

Ferdinand Funke dr_doom1983 at yahoo.de
Tue Oct 21 04:37:14 EDT 2008

I created an ASP.NET application on Visual Studio 2008 which has to be 
run under Mono which worked perfectly until now. But yesterday I 
implemented Globalization by using the Visual Studio "Create Local 
Resource" button for all pages and all UserControls I created before. 
When I tried this under Mono I got the following error:

  Server Error in '/' Application


    /Input string was not in the correct format/

*Description: *HTTP 500. Error processing request.

*Stack Trace: *

System.FormatException: Input string was not in the correct format
  at System.Int32.Parse (System.String s, NumberStyles style, IFormatProvider provider) [0x00000] 
  at System.Web.UI.WebControls.WebColorConverter.ConvertFrom (ITypeDescriptorContext context, System.Globalization.CultureInfo culture, System.Object value) [0x00000] 

*Version information: * Mono Version: 2.0.50727.42; ASP.NET Version: 

I tested this behaviour under Windows and Suse Linux 10.3 and thus I 
came across some differences in behaviour. I made a test page where I 
placed some of my UserControls and also implemented Globalization by 
using the local ressource files. The Globalization on a simple ASPX page 
seem to work under Linux as well as under Windows. Looking at the User 
Controls there are some differences under Linux and Windows. Under 
Windows only some of them show the error. But under Linux none of the 
controls seem to work. All tests ended up with the above error.

Is there something I might nothave taken into consideration? I am 
completly stuck at the moment so I would be glad if anyone had an idea 
how to solve this problem.


More information about the Mono-list mailing list