Bug 4881 - Windows installer does not include lib/mono/2.0/vbnc.exe
Summary: Windows installer does not include lib/mono/2.0/vbnc.exe
Alias: None
Product: Compilers
Classification: Mono
Component: VisualBasic ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Duncan Mak
Depends on:
Reported: 2012-05-04 08:18 UTC by shopping_mono
Modified: 2018-05-22 10:26 UTC (History)
3 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description shopping_mono 2012-05-04 08:18:11 UTC
The full installer (mono,gtk, xsp) does not include a vbnc.exe file in the lib/mono/2.0 folder. This causes a new ASP.net app created in MonoDevelop to fail on debug with the error message below.  This is verified on a clean 2.10.8 and 2.11.1 install. Installed on Windows 7 Ultimate SP1 x64.

The path for the file is set in mcs\class\System\Microsoft.VisualBasic\VBCodeCompiler.cs line 71.

  windowsvbncPath = Path.Combine (p, "2.0\\vbnc.exe");

The vbnc.exe file may be missing from the 3.0 and 3.5 as well along with other files but I don't have a linux install to do a folder comparison.

Error message in monodevelop application output:

Cannot open assembly 'C:\_servers\Mono-2.11\lib\mono\2.0\vbnc.exe': No such file or directory.

Error message displayed in browser from XSP:

Application Exception

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

Details: VBNC_CRASH:

Error origin: Compiler

Error source file: ~/Global.asax
Exception stack trace:
at System.Web.Compilation.AssemblyBuilder.BuildAssembly (System.Web.VirtualPath virtualPath, System.CodeDom.Compiler.CompilerParameters options) [0x0035f] in C:\cygwin\sources\mono\mcs\class\System.Web\System.Web.Compilation\AssemblyBuilder.cs:853
at System.Web.Compilation.AssemblyBuilder.BuildAssembly (System.Web.VirtualPath virtualPath) [0x00000] in C:\cygwin\sources\mono\mcs\class\System.Web\System.Web.Compilation\AssemblyBuilder.cs:731
at System.Web.Compilation.BuildManager.GenerateAssembly (System.Web.Compilation.AssemblyBuilder abuilder, System.Web.Compilation.BuildProviderGroup group, System.Web.VirtualPath vp, Boolean debug) [0x00258] in C:\cygwin\sources\mono\mcs\class\System.Web\System.Web.Compilation\BuildManager.cs:846
at System.Web.Compilation.BuildManager.BuildInner (System.Web.VirtualPath vp, Boolean debug) [0x0011c] in C:\cygwin\sources\mono\mcs\class\System.Web\System.Web.Compilation\BuildManager.cs:469
Version Information: 2.11.1 (master/426188e); ASP.NET Version: 2.0.50727.1433
Powered by Mono
Comment 1 shopping_mono 2012-05-04 08:21:32 UTC
Steps to reproduce:

1) Install latest Mono release on Windows
2) Install latest Mono Develop on Windows
3) Create a new VB.NET "Web Application" in mono develop.
4) Debug the app (F5)
Comment 2 Rolf Bjarne Kvinge [MSFT] 2012-05-04 17:00:11 UTC
Duncan, is this your area?
Comment 3 Rolf Bjarne Kvinge [MSFT] 2012-05-04 17:00:36 UTC
Duncan, is this your area?
Comment 4 Rolf Bjarne Kvinge [MSFT] 2018-05-22 10:26:23 UTC
Mono has switched to using Roslyn's vbc now, so this does not apply anymore.