EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Mono and Secureblackbox

Posted: 07/04/2009 01:59:25
by Chris Tulabut (Basic support level)
Joined: 07/04/2009
Posts: 6

Hi im trying to compile a VB .net console application for use in LInux

Here is my test code

Imports MySql
Imports SBX509

Module Module1
Sub New()
End Sub
Sub Main()

Dim b As New TElX509Certificate

Dim xx As New MySql.Data.MySqlClient.MySqlCommand

End Sub

End Module

then i compile

vbnc Module1.vb /r:Secureblackbox.dll,Mysql.data.dll

i get
Visual Basic.Net Compiler version (Mono 2.4 - r)
Copyright © 2004-2008 Rolf Bjarne Kvinge. All rights reserved.

Error : VBNC99999: Unexpected error: The classes in the module cannot be loaded.

at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (bool)
at System.Reflection.Assembly.GetTypes () [0x00000]
at vbnc.TypeManager.LoadReferencedTypes () [0x00000]
at vbnc.TypeManager.LoadReferenced () [0x00000]
at vbnc.Compiler.Compile () [0x00000]
Compilation took 00:00:00.4410000

can't compile a simple hello world program. what more the actual software. need help please. shed some light
im using mono 2.4, windows vista, installed sbb's latest version, as of posting.
thanks in advance
Posted: 07/04/2009 03:04:41
by Eugene Mayevski (Team)

This is some error, specific to Mono's VB compiler. C# compiler works fine. Moreover, Google doesn't give any hints regarding this problem.
As I can see, these compilers were written by different people (given that they use different switches for the same functions), so it's no wonder that some specific bugs happen. So I recommend using C#.

Sincerely yours
Eugene Mayevski
Posted: 07/15/2009 03:25:24
by Chris Tulabut (Basic support level)
Joined: 07/04/2009
Posts: 6

You're absolutely right. ive rewritten my code in c# and mono's C# compiler works perfectly.




Topic viewed 1171 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!