[mono-vb] mod_mono with VB: The library 'Microsoft.VisualBasic.dll' could not be found

Allen Choong allencch at hotmail.com
Fri Jun 21 05:50:32 UTC 2013


Hi Rolf,

Thanks for the reply. But this statement doesn't work. Result still the same.

Regards,
Allen

Date: Fri, 21 Jun 2013 01:23:55 +0200
Subject: Re: [mono-vb] mod_mono with VB: The library 'Microsoft.VisualBasic.dll' could not be found
From: rolf at xamarin.com
To: allencch at hotmail.com
CC: mono-vb at lists.ximian.com

Hi,
It looks like you're missing some Imports statements.
IIRC some should be included by default, but you can also add them manually to your aspx file.

I believe this is how you do it:
<%@ import namespace="System"%>

Rolf
On Thu, Jun 20, 2013 at 4:27 PM, Allen Choong <allencch at hotmail.com> wrote:




Hi Rolf,

Thanks. But the problem is partially solved. Now the next problem is,


System.Web.Compilation.CompilationException
VBNC30451: Could not resolve the name 'Type'

Description: Error compiling a resource required to service this request. Review your source file and modify it to fix this error.
Details: VBNC30451: Could not resolve the name 'Type'
Error origin: Compiler
Error source file: /~user/test.aspx
Exception stack trace:
  at System.Web.Compilation.AssemblyBuilder.BuildAssembly (System.Web.VirtualPath virtualPath, System.CodeDom.Compiler.CompilerParameters options) [0x00000] in <filename unknown>:0 
  at System.Web.Compilation.AssemblyBuilder.BuildAssembly (System.Web.VirtualPath virtualPath) [0x00000] in <filename unknown>:0 
  at System.Web.Compilation.BuildManager.GenerateAssembly (System.Web.Compilation.AssemblyBuilder abuilder, System.Web.Compilation.BuildProviderGroup group, System.Web.VirtualPath vp, Boolean debug) [0x00000] in <filename unknown>:0 
  at System.Web.Compilation.BuildManager.BuildInner (System.Web.VirtualPath vp, Boolean debug) [0x00000] in <filename unknown>:0 
Sorry for the bother. Any idea to solve this?

Regards,
Allen



Date: Thu, 20 Jun 2013 14:58:57 +0200
Subject: Re: [mono-vb] mod_mono with VB: The library 'Microsoft.VisualBasic.dll' could not be found
From: rolf at xamarin.com

To: allencch at hotmail.com
CC: mono-vb at lists.ximian.com

Hi,
Try this:

sudo ln -s /usr/lib/mono/4.0/Microsoft.VisualBasic.dll  /usr/lib/mono/4.5/Microsoft.VisualBasic.dll


Rolf
On Thu, Jun 20, 2013 at 2:42 PM, Allen Choong <allencch at hotmail.com> wrote:




Hi Rolf,

This is the result.

Using system path: /usr/lib/mono/4.5
Loaded /usr/lib/mono/4.5/Accessibility.dll => Accessibility, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a


Loaded /usr/lib/mono/4.5/System.Configuration.dll => System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Loaded /usr/lib/mono/4.5/System.Data.dll => System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089


Loaded /usr/lib/mono/4.5/System.Design.dll => System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Loaded /usr/lib/mono/4.5/System.dll => System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089


Loaded /usr/lib/mono/4.5/System.Drawing.Design.dll => System.Drawing.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Loaded /usr/lib/mono/4.5/System.Drawing.dll => System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a


Loaded /usr/lib/mono/4.5/System.Web.dll => System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Loaded /usr/lib/mono/4.5/System.Web.Services.dll => System.Web.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a


Loaded /usr/lib/mono/4.5/System.Windows.Forms.dll => System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Loaded /usr/lib/mono/4.5/System.Xml.dll => System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089


Loaded /usr/lib/mono/4.5/mscorlib.dll => mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Error : VBNC2017: The library 'Microsoft.VisualBasic.dll' could not be found.

There were 1 errors and 0 warnings.
Compilation took 00:00:00.1624600

And I checked. Microsoft.VisualBasic.dll only exists in /usr/lib/mono/2.0 and /usr/lib/mono/4.0. 

Regards,
Allen




Date: Thu, 20 Jun 2013 14:38:48 +0200
Subject: Re: [mono-vb] mod_mono with VB: The library 'Microsoft.VisualBasic.dll' could not be found
From: rolf at xamarin.com


To: allencch at hotmail.com
CC: mono-vb at lists.ximian.com

Hi Allen,
Can you try to execute this from a console window:


cd /tmptouch test.vb
vbnc test.vb -target:library -verbose

Rolf
On Thu, Jun 20, 2013 at 2:34 PM, Allen Choong <allencch at hotmail.com> wrote:






Hi Rolf,

Yes. The file exists.


Regards,
Allen


Date: Thu, 20 Jun 2013 13:05:06 +0200
Subject: Re: [mono-vb] mod_mono with VB: The library 'Microsoft.VisualBasic.dll' could not be found



From: rolf at xamarin.com
To: allencch at hotmail.com
CC: mono-vb at lists.ximian.com




Hi,
Do you have Microsoft.VisualBasic.dll on your system?
The exact location may depend on the distro you're using, but in my case it's here:


/usr/lib/mono/gac/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
Rolf

On Thu, Jun 20, 2013 at 10:57 AM, Allen Choong <allencch at hotmail.com> wrote:







Please help this one.
I am using Arch Linux, with mod_mono 2.10 and mono-basic 2.10.
But when I run a page with this code,

<%@ Page Language="VB" %>
<html>
<body>




     <h1>Hello Web Pages</h1>
</body>
</html> 

I got this result,





System.Web.Compilation.CompilationException



VBNC_CRASH: Visual Basic.Net Compiler version 0.0.0.5943
Copyright (C) 2004-2010 Rolf Bjarne Kvinge. All rights reserved.

Error : VBNC2017: The library 'Microsoft.VisualBasic.dll' could not be found.
There were 1 errors and 0 warnings.
Compilation took 00:00:00.1138380




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



Details: VBNC_CRASH: Visual Basic.Net Compiler version 0.0.0.5943 Copyright (C) 2004-2010 Rolf Bjarne Kvinge. All rights reserved. Error : VBNC2017: The library 'Microsoft.VisualBasic.dll' could not be found.




There were 1 errors and 0 warnings.
Compilation took 00:00:00.1138380



Error origin: Compiler



Error source file: /~user/test.aspx



Exception stack trace:



  at System.Web.Compilation.AssemblyBuilder.BuildAssembly (System.Web.VirtualPath virtualPath, System.CodeDom.Compiler.CompilerParameters options) [0x00000] in <filename unknown>:0 
  at System.Web.Compilation.AssemblyBuilder.BuildAssembly (System.Web.VirtualPath virtualPath) [0x00000] in <filename unknown>:0 
  at System.Web.Compilation.BuildManager.GenerateAssembly (System.Web.Compilation.AssemblyBuilder abuilder, System.Web.Compilation.BuildProviderGroup group, System.Web.VirtualPath vp, Boolean debug) [0x00000] in <filename unknown>:0 
  at System.Web.Compilation.BuildManager.BuildInner (System.Web.VirtualPath vp, Boolean debug) [0x00000] in <filename unknown>:0 
Can anyone help? Thanks.

Regards,
Allen
 		 	   		  





_______________________________________________

Mono-vb mailing list

Mono-vb at lists.ximian.com

http://lists.ximian.com/mailman/listinfo/mono-vb



 		 	   		  

 		 	   		  

 		 	   		  

 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-vb/attachments/20130621/f28016bb/attachment-0001.html>


More information about the Mono-vb mailing list