1

我在 Visual Studio 中编写了一个针对 ASP.NET v.3 的 VB.NET 表单站点,并让它在我的一台使用 Mono 的 Ubuntu 机器上工作,它是 VBNC 编译器。

但是,在全新安装的 Ubuntu 上,在安装了所有必要的 Mono 包(包括运行时和编译器的最新版本)后,每次我将页面的语言声明为 VB 时都会遇到相同的错误:

Server Error in '/' Application

Compilation Error

Description: Error compiling a resource required to service this request. Review your source file and modify it to fix this error.

Compiler Error Message: VBNC_CRASH: Visual Basic.Net Compiler version 0.0.0.5943 Copyright (C) 2004-2010 Rolf Bjarne Kvinge. All rights reserved. Error : VBNC99999: Unexpected error: An exception was thrown by the type initializer for Mono.Cecil.BaseAssemblyResolver
at Mono.Cecil.DefaultAssemblyResolver..ctor () [0x00000] in <filename unknown>:0 at vbnc.Compiler.get_AssemblyResolver () [0x00000] in <filename unknown>:0 at vbnc.TypeManager.LoadAssembly (System.String Filename, System.String& FullPath) [0x00000] in <filename unknown>:0 at vbnc.TypeManager.LoadReferencedAssemblies () [0x00000] in <filename unknown>:0 at vbnc.TypeManager.LoadReferenced () [0x00000] in <filename unknown>:0 at vbnc.Compiler.Compile () [0x00000] in <filename unknown>:0 
Compilation took 00:00:00.2333320

/default.aspx
Version information: Mono Runtime Version: 2.10.8.1 (Debian 2.10.8.1-1ubuntu2.2); ASP.NET Version: 2.0.50727.1433

我已经尝试了我能想象到的一切——安装所有必要的包(包括单完整包)并确保一切都更新了。困扰我的是任何页面(甚至是一个hello world)<%@ Page Language="VB" %>都会导致编译器崩溃。任何页面都可以<%@ Page Language="C#" %>正常工作。

我在这里想念什么?

4

0 回答 0