[mono-vb] vbnc: compile .vb with DLL reference

AlterX76 alterx at hotmail.com
Mon Jun 29 07:10:33 EDT 2009



Rolf Bjarne Kvinge-2 wrote:
> 
> Do you have this assembly?
> 
> And what happens if you try the exact same command but within a normal
> command prompt, not the mono one?
> 
> Rolf
> 
I think that assembly is present (within mono installation).
Anywhere, below output from normal dos prompt:

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


Error : VBNC99999: Unexpected error: An exception was thrown by the type
initializer for <Module>
  at (wrapper managed-to-native) System.Reflection.Assembly:LoadFrom
(string,bool)
  at System.Reflection.Assembly.LoadFrom (System.String assemblyFile)
[0x00000]
  at vbnc.TypeManager.LoadAssembly (System.String Filename) [0x00000]
  at vbnc.TypeManager.LoadReferencedAssemblies () [0x00000]
  at vbnc.TypeManager.LoadReferenced () [0x00000]
  at vbnc.Compiler.Compile () [0x00000]
Compilation took 00:00:00.7968036

** (C:\PROGRA~1\Mono-2.4\lib\mono\2.0\vbnc.exe:3536): WARNING **: The
following assembly referenced from
C:\PROGRA~1\Mono-2.4\lib\mono\2.0\System.dll could not be loaded:
     Assembly:   System.Configuration    (assemblyref_index=1)
     Version:    2.0.0.0
     Public Key: b03f5f7f11d50a3a
The assembly was not found in the Global Assembly Cache, a path listed in
the MONO_PATH environment variable, or in the location of the executing
assembly (C:\PROGRA~1\Mono-2.4\lib
\mono\2.0\).


** (C:\PROGRA~1\Mono-2.4\lib\mono\2.0\vbnc.exe:3536): WARNING **: Could not
load file or assembly 'System.Configuration, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11
d50a3a' or one of its dependencies.

** (C:\PROGRA~1\Mono-2.4\lib\mono\2.0\vbnc.exe:3536): WARNING **: Missing
method GetSection in assembly C:\PROGRA~1\Mono-2.4\lib\mono\2.0\System.dll,
type System.Configuration.Conf
igurationManager
Could not load file or assembly 'System.Configuration, Version=2.0.0.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its
dependencies.
  at System.Diagnostics.DiagnosticsConfiguration.get_Settings () [0x00000]
  at System.Diagnostics.TraceImpl.InitOnce () [0x00000]
  at System.Diagnostics.TraceImpl.get_Listeners () [0x00000]
  at System.Diagnostics.TraceImpl.get_ListenersSyncRoot () [0x00000]
  at System.Diagnostics.TraceImpl.WriteLine (System.String message)
[0x00000]
  at System.Diagnostics.Debug.WriteLine (System.String message) [0x00000]
  at vbnc.Main.Main (System.String[] CmdArgs) [0x00000]
Failed compilation took 00:00:00.9061688

-- 
View this message in context: http://www.nabble.com/vbnc%3A-compile-.vb-with-DLL-reference-tp24056222p24252227.html
Sent from the Mono - VB mailing list archive at Nabble.com.



More information about the Mono-vb mailing list