[Mono-aspnet-list] Input string was not in the correct format

Hubert FONGARNAND informatique.internet at fiducial.fr
Tue Nov 24 02:56:07 EST 2009


This problem happens when libgdiplus is not installed...

-- 
Hubert FONGARNAND
Service Intranet/Internet
FIDUCIAL Staffing
38, rue Sergent Michel Berthet
69338 LYON
Tél: 04 72 20 13 58



-------- Message original --------
De: Mark DevGood <dirkroel at gmail.com>
Date: 23/11/2009 22:08
Pour :: mono-aspnet-list at lists.ximian.com
Sujet: [Mono-aspnet-list]  Input string was not in the correct format
> I'd like to post the solution to a bug that seriously had me scratching my
> head. This may be answered already but I could not easily find the solution
> to this on the web and had to resort to a painstaking process to discover
> the issue.
>
> If you see this error message:
>
> 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] 
>
>
> The solution is to hunt for a asp control which has a property such as
> ForeColor="Red", then removing this solves the problem. 
>
> Example which gives the error:  
> <asp:Label ID="lblMessage" runat="server" Text="" Visible="true"
> Font-Bold="true" ForeColor="Red" />
>
> Example which works okay: 
> <asp:Label ID="lblMessage" runat="server" Text="" Visible="true"
> Font-Bold="true" />
>
> Now I don't mind the fact that "Red" may not be supported as a colour,
> however the part I find extremely painful is that the error message shown
> does not tell me ANYTHING about where to hunt for the problem. 
> We need to have a better error message for this so that developers don't
> need to comment out lines of code one by one to see if the problem is
> solved.
>
> I'd much appreciate it if a kind soul could log this as a bug as I do not
> have a login for Novell.
>   



_________________________________________________

Ce message et les éventuels documents joints peuvent contenir des informations confidentielles.
Au cas où il ne vous serait pas destiné, nous vous remercions de bien vouloir le supprimer et en aviser immédiatement l'expéditeur. Toute utilisation de ce message non conforme à sa destination, toute diffusion ou publication, totale ou partielle et quel qu'en soit le moyen est formellement interdite.
Les communications sur internet n'étant pas sécurisées, l'intégrité de ce message n'est pas assurée et la société émettrice ne peut être tenue pour responsable de son contenu.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20091124/65da555f/attachment-0001.html 


More information about the Mono-aspnet-list mailing list