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

gep13 gep13 at hotmail.com
Sat Aug 15 04:20:53 EDT 2009


Hello,

I was wondering if someone would be able to help.

I have recently re-installed mono on my Linux Server and have redeployed my
website to it.  Now, whenever I try and access any of the pages of that site
all I get is the following:

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) [0x00016] in
/tmp/Downloads/mono-2.4.2.3/mcs/class/corlib/System/Int32.cs:599 
  at System.Web.UI.WebControls.WebColorConverter.ConvertFrom
(ITypeDescriptorContext context, System.Globalization.CultureInfo culture,
System.Object value) [0x000f2] in
/tmp/Downloads/mono-2.4.2.3/mcs/class/System.Web/System.Web.UI.WebControls/WebColorConverter.cs:92 
Version information: Mono Version: 2.0.50727.1433; ASP.NET Version:
2.0.50727.1433

Can anyone suggest why this would be happening?

The website runs fine when I run it on my windows machine.

For your information, I compiled mono, xsp, and mod_mono from source.  I get
this error whether I run the application through either XSP or mod_mono.

I have done some googling, and I am finding reference to this problem being
related to a lack of libgdiplus, however, as far as I can see, I have done
all the steps necessary to install both mono and libgdiplus.

This is what I did:

wget
http://ftp.novell.com/pub/mono/sources/libgdiplus/libgdiplus-2.4.2.tar.bz2
tar xfj libgdiplus-2.4.2.tar.bz2
cd libgdiplus-2.4.2.tar.bz2
./configure
make
make install
cd ..

wget http://ftp.novell.com/pub/mono/sources/mono/mono-2.4.2.3.tar.bz2
tar xfj mono-2.4.2.3.tar.bz2
cd mono-2.4.2.3.tar.bz2
./configure --with-libgdiplus
make
make install
cd ..

wget http://ftp.novell.com/pub/mono/sources/xsp/xsp-2.4.2.tar.bz2
tar xfj xsp-2.4.2.tar.bz2
cd xsp-2.4.2.tar.bz2
./configure
make
make install
cd ..

wget http://ftp.novell.com/pub/mono/sources/mod_mono/mod_mono-2.4.2.tar.bz2
tar xfj mod_mono-2.4.2.tar.bz2
cd mod_mono-2.4.2.tar.bz2
./configure
make
make install

The mono xsp tests pages all work, and so does a very simple Hello World
Application that I knocked up, but when I try and browse my website (which
did work on a previous mono installation), I get the error mentioned above.

Any help would be greatfully received!!

Thanks

Gary
-- 
View this message in context: http://www.nabble.com/Input-String-was-not-in-the-correct-format-tp24979333p24979333.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.



More information about the Mono-aspnet-list mailing list