[Mono-winforms-list] Form.InicializeComponent() throwing InvalidCastException

Stifu stifu at free.fr
Mon Dec 13 11:34:11 EST 2010

It might be this bug: https://bugzilla.novell.com/show_bug.cgi?id=648403

bmnds wrote:
> I dunno what may be causing it to happen. I've done a simple application
> before using winforms and it worked (the Picture Viewer example).
> I'm attaching the Visual Studio C# project if someone wants to check it.
> I'm completely blind here, no clue what can cause this... it works normaly
> on Windows 7.
> I've used an OpenFileDialog, TabView and some regular containers and
> controls.
> Here is the log (the window not even open, so I'm pretty sure it is some
> of the componentes, TabView maybe?):
> tesshu at Tesshu:~/Área de Trabalho/Mono .NET$ mono FileServer.exe &
> [1] 1989
> tesshu at Tesshu:~/Área de Trabalho/Mono .NET$ 
> Unhandled Exception: System.InvalidCastException: Cannot cast from source
> type to destination type.
>   at FileServer.Form1.InitializeComponent () [0x00000] 
>   at FileServer.Form1..ctor () [0x00000] 
>   at (wrapper remoting-invoke-with-check) FileServer.Form1:.ctor ()
>   at FileServer.Program.Main () [0x00000] 
>  http://mono.1490590.n4.nabble.com/file/n3085664/FileServer.zip
> FileServer.zip 

View this message in context: http://mono.1490590.n4.nabble.com/Form-InicializeComponent-throwing-InvalidCastException-tp3085664p3085699.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.

More information about the Mono-winforms-list mailing list