Hi Rolf,

Thanks. I also found this solution from some of the forums. But I personally 
feel that "refreshing" the code is quite slow. But I think there is no better 
solution.

Thanks.

Regards,
Allen


Date: Mon, 1 Jul 2013 14:06:36 +0200
Subject: Re: [mono-vb] mod_mono with VB: The library 
'Microsoft.VisualBasic.dll' could not be found
From: [email protected]
To: [email protected]
CC: [email protected]

Hi,
You can try "touch web.config" (make sure you use the right casing for 
web.config, otherwise you'll just create a new file) - this should reload the 
aspx application.

Rolf

On Sat, Jun 22, 2013 at 4:25 PM, Allen Choong <[email protected]> wrote:




Hi Rolf,

I solved it by using the git version. I think there is some problem for the 
version 2.10 source code.
Now only problem I face is the changes of the aspx source code will not update 
the server. Unless restart httpd.


Regards,
Allen


From: [email protected]
To: [email protected]

Date: Fri, 21 Jun 2013 15:48:59 +0800
CC: [email protected]
Subject: Re: [mono-vb] mod_mono with VB: The library 
'Microsoft.VisualBasic.dll' could not be found





Hi Rolf,

This is the code.

<%@ Page Language="VB" %>
<%@ import namespace="System"%>
<html>
<body>
Hello world
</body>
</html>


So far, if the language change to "C#", then it works.

Regards,
Allen


Date: Fri, 21 Jun 2013 09:15:08 +0200
Subject: Re: [mono-vb] mod_mono with VB: The library 
'Microsoft.VisualBasic.dll' could not be found

From: [email protected]
To: [email protected]
CC: [email protected]


Hi Allen,
Can you show the code you're trying?
Rolf

On Fri, Jun 21, 2013 at 7:50 AM, Allen Choong <[email protected]> wrote:





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: [email protected]
To: [email protected]


CC: [email protected]

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 <[email protected]> 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: [email protected]



To: [email protected]
CC: [email protected]

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 <[email protected]> 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: [email protected]




To: [email protected]
CC: [email protected]

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 <[email protected]> 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: [email protected]
To: [email protected]
CC: [email protected]






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 <[email protected]> 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

[email protected]

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



                                          

                                          

                                          

                                          

                                          

_______________________________________________
Mono-vb mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/mono-vb                                
          

                                          
_______________________________________________
Mono-vb mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/mono-vb

Reply via email to