[Mono-list] Mono + VB.NET?

Will Murnane will.murnane at gmail.com
Sat Dec 30 18:58:29 EST 2006


I'm trying to run a VB.NET web app under Linux using Mono and vbnc.
When I run xsp in the directory with the files and try to access
HelloWorld.aspx, I get a 500 client-side with this information:
Description: Error processing request.

Error Message: HTTP 500.

Stack Trace:

System.IO.FileNotFoundException: File or assembly name
/tmp/will-temp-aspnet-0/9245647c/100088bf.dll, or one of its
dependencies, was not found.
File name: "/tmp/will-temp-aspnet-0/9245647c/100088bf.dll"
  at <0x00000> <unknown method>
  at (wrapper managed-to-native) System.Reflection.Assembly:LoadFrom
(string,bool)
  at System.Reflection.Assembly.LoadFrom (System.String assemblyFile) [0x00000]
  at Microsoft.VisualBasic.VBCodeCompiler.CompileFromFileBatch
(System.CodeDom.Compiler.CompilerParameters options, System.String[]
fileNames) [0x00000]
  at Microsoft.VisualBasic.VBCodeCompiler.CompileAssemblyFromFileBatch
(System.CodeDom.Compiler.CompilerParameters options, System.String[]
fileNames) [0x00000]
  at Microsoft.VisualBasic.VBCodeCompiler.CompileFromDomBatch
(System.CodeDom.Compiler.CompilerParameters options,
System.CodeDom.CodeCompileUnit[] ea) [0x00000]
  at Microsoft.VisualBasic.VBCodeCompiler.CompileAssemblyFromDomBatch
(System.CodeDom.Compiler.CompilerParameters options,
System.CodeDom.CodeCompileUnit[] ea) [0x00000]
  at Microsoft.VisualBasic.VBCodeCompiler.CompileAssemblyFromDom
(System.CodeDom.Compiler.CompilerParameters options,
System.CodeDom.CodeCompileUnit e) [0x00000]
  at System.Web.Compilation.CachingCompiler.Compile
(System.Web.Compilation.BaseCompiler compiler) [0x00000]
  at System.Web.Compilation.BaseCompiler.GetCompiledType () [0x00000]
  at System.Web.Compilation.AspGenerator.GetCompiledType () [0x00000]
  at System.Web.UI.ApplicationFileParser.GetCompiledApplicationType
(System.String inputFile, System.Web.HttpContext context) [0x00000]
  at System.Web.HttpApplicationFactory.InitType
(System.Web.HttpContext context) [0x00000]
  at System.Web.HttpApplicationFactory.GetApplication
(System.Web.HttpContext context) [0x00000]
  at System.Web.HttpRuntime.RealProcessRequest (System.Object o) [0x00000]

At the same time, xsp reports that an assembly is missing:
** (/usr/local//lib/mono/1.0/mbas.exe:15636): WARNING **: The class
System.Collections.Generic.Queue`1 could not be loaded, used in
System, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089

Any ideas what's wrong here?  vbnc compiles sample  VB.NET apps fine,
mcs and gmcs work, C# apps under ASP.NET work, but no luck with
VB.NET.  A simple test file with "using System.Collections.Generic;"
and a simple main method compiles fine from command line in C#.
gacutil shows mscorlib.dll in place as expected.

The same error is given when a VB.NET program with "Imports
System.Collections.Generic" is compiled with vbnc.exe:
$ vbnc.exe test.vb

                                                  DEBUG RUN


** (/usr/local/lib/mono/1.0/vbnc.exe:15670): WARNING **: The class
System.Collections.Generic.Queue`1 could not be loaded, used in
System, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089
Could not load type 'System.Collections.Generic.Queue`1' from assembly
'System, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089'.
  at <0x00000> <unknown method>
  at vbnc.Main.Main (System.String[] CmdArgs) [0x00000]

What assembly am I missing?  Any suggestions?

Thanks in advance!
Will


More information about the Mono-list mailing list