[mono-vb] Simple example Compiling dificulties

Mauricio Henriquez buho-1@entelchile.net
Sat, 22 May 2004 22:01:40 -0400


This is a multi-part message in MIME format.

--Boundary_(ID_cuqg6e2jajIyxL+gR/SvvQ)
Content-type: text/plain; charset=iso-8859-1
Content-transfer-encoding: 7BIT

Hi:

I try to compile a simple VB .NET example with "mono-BETA1" on Windows, but the following message appear:


C:\Archivos de programa\Mono-0.91\lib\mono\1.0>mbas C:\monovb_pr1\gtk.vb -r gtk-sharp

Unhandled Exception: System.IO.FileLoadException: Strong name validation failed
for assembly 'Mono.GetOptions'.
File name: "Mono.GetOptions"

Fusion log follows:
=== Pre-bind state information ===
LOG: DisplayName = Mono.GetOptions, Version=1.0.5000.0, Culture=neutral, PublicK
eyToken=0738eb9f132ed756
 (Fully-specified)
LOG: Appbase = C:\Archivos de programa\Mono-0.91\lib\mono\1.0\
LOG: Initial PrivatePath = NULL
Calling assembly : mbas, Version=0.29.0.0, Culture=neutral, PublicKeyToken=null.

===

LOG: Application configuration file does not exist.
LOG: Publisher policy file is not found.
LOG: Host configuration file not found.
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v1
.0.3705\config\machine.config.
LOG: Post-policy reference: Mono.GetOptions, Version=1.0.5000.0, Culture=neutral
, PublicKeyToken=0738eb9f132ed756
LOG: Attempting download of new URL file:///C:/Archivos de programa/Mono-0.91/li
b/mono/1.0/Mono.GetOptions.DLL.


This is the source of "gtk.vb":

Imports System
Imports Gtk

Module GtkTest
 Sub Main()
  Dim Win as Window
  Dim Btn as Button
  Application.Init ()
  Win = new Window ("VB .NET Gtk+ en Linux!!!")
  Btn = new Button ("Apretame") 
  Win.Add (Btn)
  Win.ShowAll ()
  Application.Run ()
 End Sub
End Module

The same code run without problems if I compile the program with VS .NET 2003, Why??? 

Any Ideas??, suggestions??, tips??, links??, black-magic??

Thanks

Mauricio Henriquez.

--Boundary_(ID_cuqg6e2jajIyxL+gR/SvvQ)
Content-type: text/html; charset=iso-8859-1
Content-transfer-encoding: 7BIT

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I try to compile a simple VB .NET example with 
"mono-BETA1" on Windows, but the following message appear:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>C:\Archivos de 
programa\Mono-0.91\lib\mono\1.0&gt;mbas C:\monovb_pr1\gtk.vb -r 
gtk-sharp</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Unhandled Exception: System.IO.FileLoadException: 
Strong name validation failed<BR>for assembly 'Mono.GetOptions'.<BR>File name: 
"Mono.GetOptions"</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Fusion log follows:<BR>=== Pre-bind state 
information ===<BR>LOG: DisplayName = Mono.GetOptions, Version=1.0.5000.0, 
Culture=neutral, 
PublicK<BR>eyToken=0738eb9f132ed756<BR>&nbsp;(Fully-specified)<BR>LOG: Appbase = 
C:\Archivos de programa\Mono-0.91\lib\mono\1.0\<BR>LOG: Initial PrivatePath = 
NULL<BR>Calling assembly : mbas, Version=0.29.0.0, Culture=neutral, 
PublicKeyToken=null.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>===</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>LOG: Application configuration file does not 
exist.<BR>LOG: Publisher policy file is not found.<BR>LOG: Host configuration 
file not found.<BR>LOG: Using machine configuration file from 
C:\WINDOWS\Microsoft.NET\Framework\v1<BR>.0.3705\config\machine.config.<BR>LOG: 
Post-policy reference: Mono.GetOptions, Version=1.0.5000.0, Culture=neutral<BR>, 
PublicKeyToken=0738eb9f132ed756<BR>LOG: Attempting download of new URL <A 
href="file:///C:/Archivos">file:///C:/Archivos</A> de 
programa/Mono-0.91/li<BR>b/mono/1.0/Mono.GetOptions.DLL.<BR></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>This is the source of "gtk.vb":</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Imports System<BR>Imports Gtk</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Module GtkTest<BR>&nbsp;Sub 
Main()<BR>&nbsp;&nbsp;Dim Win as Window<BR>&nbsp;&nbsp;Dim Btn as 
Button<BR>&nbsp;&nbsp;Application.Init ()<BR>&nbsp;&nbsp;Win = new Window ("VB 
.NET Gtk+ en Linux!!!")<BR>&nbsp;&nbsp;Btn = new Button 
("Apretame")&nbsp;<BR>&nbsp;&nbsp;Win.Add (Btn)<BR>&nbsp;&nbsp;Win.ShowAll 
()<BR>&nbsp;&nbsp;Application.Run ()<BR>&nbsp;End Sub<BR>End 
Module<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>The same code run without problems if I compile the 
program with VS .NET 2003, Why??? </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Any Ideas??, suggestions??, tips??, links??, 
black-magic??</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thanks</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Mauricio Henriquez.</FONT></DIV>
<DIV><FONT face=Arial size=2>&nbsp;</DIV></FONT></BODY></HTML>

--Boundary_(ID_cuqg6e2jajIyxL+gR/SvvQ)--