From wauters_kris at telenet.be Sun Feb 10 09:07:54 2008 From: wauters_kris at telenet.be (Kris Wauters) Date: Sun, 10 Feb 2008 15:07:54 +0100 Subject: [mono-vb] projects do work fine on windows, but I can't get it compiled on my MAC :-( Message-ID: <000001c86bee$549fdad0$fddf9070$@be> Hello all, I recently started with mono. (I tried it a few years ago, but only console applications did work fine) As I understood from the documentation, it should be possible to run a windows.forms application on other platforms ? I get my project compiled on my windows machine, but I can't get it to compile/run on my MAC (tiger 10.4) What I tried: - Fired up VS2003, created a module1.vb with a "sub main", with a simple msgbox("test") - I removed the "imports system,system reflection and system.runtime.interopservices" from the assemblyinfo.vb - I only have system.data, system.drawing and system.windows.forms as references - The application compiles and runs fine from with VS2003 (using .NET framework 1.0) - I compiled it with vbnc on my windows machine, as following: VBNC module1.VB -r:system.data.dll,system.drawing.dll,system.windows.forms.dll /target:winexe /out:test.exe - The exe runs fine . - I then "moved" my whole folder to my MAC (tiger 10.4), where I also installed mono. - I tried: mono test.exe, but I get all kinds of weird errors: (system.overflowexception, Number overflow, at (wrapper managed-to-native) System.object:__icall_wrapper_emul_fconv_to_ovf_i8 (double) with some extra lines, all ending at [0x00000] - Then, I tried to compile it on my MAC, with: VBNC module1.vb -r:system.data.dll,system.drawing.dll,system.windows.forms.dll -out:test.exe This gives me 3 warnings about class Mono.WebBrowser.DOM.Idocument could not be loaded, used in Mono.Mozilla, Version=0.2.0.0 (I don't see why I get this warnings, I don't use web-related things in my test-application) I also get an erro: VBNC99999: Unexpected error: the classed in the module cannot be loaded, at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (bool) - I also tried to use the libpath etc, but I still think that I'm compiling against 2.0 instead of 1.0 on my MAC. Can someone please help me out ? I have been trying to get this working on a MAC for 3 full days now, without any success. (also, MAC is relatively new to me, so I really need some "noob" guidance) Thanks in advance and sorry for my bad English (Dutch is my native language) Best regards from Belgium, Kris -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-vb/attachments/20080210/52a267eb/attachment-0001.html From rolflists at ya.com Mon Feb 11 05:20:01 2008 From: rolflists at ya.com (Rolf Bjarne Kvinge) Date: Mon, 11 Feb 2008 11:20:01 +0100 Subject: [mono-vb] projects do work fine on windows, but I can't get it compiled on my MAC :-( In-Reply-To: <000001c86bee$549fdad0$fddf9070$@be> References: <000001c86bee$549fdad0$fddf9070$@be> Message-ID: <000001c86c97$ab645540$022cffc0$@com> Hi, It looks like you haven't installed winforms correctly (or aren't using it correctly), or a more general mono problem. There are several things you can try out in order to narrow down the cause: Try putting System.Console.WriteLine ("Hello world") in your Main and compile with -target:exe instead of winexe. If this works, then it's a winforms problem, and you should ask in the mono-winforms list. If it doesn't work, rewrite the same sample in C# and compile with mcs. If this doesn't work, then it's a more general mono problem, and you should ask in the mono list. (more notes inline) >From: mono-vb-bounces at lists.ximian.com [mailto:mono-vb-bounces at lists.ximian.com] On Behalf Of Kris Wauters >Sent: domingo, 10 de febrero de 2008 15:08 >To: mono-vb at lists.ximian.com >Subject: [mono-vb] projects do work fine on windows, but I can't get it compiled on my MAC :-( > >Hello all, > >I recently started with mono. (I tried it a few years ago, but only console applications did work fine) >As I understood from the documentation, it should be possible to run a windows.forms application on >other platforms ? > >I get my project compiled on my windows machine, but I can't get it to compile/run on my MAC (tiger 10.4) > >What I tried: >- Fired up VS2003, created a module1.vb with a "sub main", with a simple msgbox("test") >- I removed the "imports system,system reflection and system.runtime.interopservices" >from the assemblyinfo.vb >- I only have system.data, system.drawing and system.windows.forms as references > >- The application compiles and runs fine from with VS2003 (using .NET framework 1.0) >- I compiled it with vbnc on my windows machine, as following: >VBNC module1.VB -r:system.data.dll,system.drawing.dll,system.windows.forms.dll /target:winexe >/out:test.exe >- The exe runs fine . >- I then "moved" my whole folder to my MAC (tiger 10.4), where I also installed mono. >- I tried: mono test.exe, but I get all kinds of weird errors: >(system.overflowexception, Number overflow, at (wrapper managed-to-native)System.object:__icall_wrapper_emul_fconv_to_ovf_i8 (double) >with some extra lines, all ending at [0x00000] Posting the entire output would help in order to narrow down the failure. >- Then, I tried to compile it on my MAC, with: >VBNC module1.vb -r:system.data.dll,system.drawing.dll,system.windows.forms.dll -out:test.exe >This gives me 3 warnings about class Mono.WebBrowser.DOM.Idocument could not be loaded, >used in Mono.Mozilla, Version=0.2.0.0 >(I don't see why I get this warnings, I don't use web-related things in my test-application) System.Windows.Forms.dll has a WebBrowser class, and our implementation is in a separate assembly (Mono.Mozilla), which you don't seem to have installed on your mac. When the compiler loads System.Windows.Forms.dll it has to load all the classes in that assembly, including the WebBrowser class, which then fails. Anyways an assembly compiled on another machine should work. >I also get an erro: VBNC99999: Unexpected error: the classed in the module cannot be loaded, >at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (bool) >- I also tried to use the libpath etc, but I still think that I'm compiling against 2.0 instead of 1.0 >on my MAC. Vbnc can't compile against 1.0, only against 2.0. Regards Rolf From jgeerdes at mchsi.com Thu Feb 14 15:53:26 2008 From: jgeerdes at mchsi.com (Jeremy R. Geerdes) Date: Thu, 14 Feb 2008 14:53:26 -0600 Subject: [mono-vb] Installing mono-vb on OSX Leopard Message-ID: <849CC0BD-30FE-4A4D-AC2A-4464B9C49379@mchsi.com> Greetings. Trying to get mono-vb up and running on my Santa Rosa Macbook running Leopard with mono 1.2.6_6, xsp 1.2.6, and mod_mono. Install seems to go fine, but mono still reports that it doesn't support VBNet. I believe that the problem lies in the prefix. Namely, I haven't figured out what prefix to use with the configure. Mono is installed in /Library/Frameworks/Mono.framework . I tried -- prefix=/Library/Frameworks and --prefix=/Library/Frameworks/ Mono.framework without success. Wondering if anyone has any insight into what the correct prefix should be. Rev. Jeremy R. Geerdes, Pastor Debra Heights Wesleyan Church 4025 Lower Beaver Rd. Des Moines, IA 50310 p/f: (515) 279-5212 h: (515) 277-7491 jgeerdes at mchsi.com From rolflists at ya.com Fri Feb 15 09:32:07 2008 From: rolflists at ya.com (Rolf Bjarne Kvinge) Date: Fri, 15 Feb 2008 15:32:07 +0100 Subject: [mono-vb] Installing mono-vb on OSX Leopard In-Reply-To: <849CC0BD-30FE-4A4D-AC2A-4464B9C49379@mchsi.com> References: <849CC0BD-30FE-4A4D-AC2A-4464B9C49379@mchsi.com> Message-ID: <004f01c86fdf$92946cd0$b7bd4670$@com> > -----Original Message----- > From: mono-vb-bounces at lists.ximian.com [mailto:mono-vb- > bounces at lists.ximian.com] On Behalf Of Jeremy R. Geerdes > Sent: jueves, 14 de febrero de 2008 21:53 > To: mono-vb at lists.ximian.com > Subject: [mono-vb] Installing mono-vb on OSX Leopard > > Greetings. Trying to get mono-vb up and running on my Santa Rosa > Macbook running Leopard with mono 1.2.6_6, xsp 1.2.6, and mod_mono. > Install seems to go fine, but mono still reports that it doesn't > support VBNet. Exactly what are you trying to do? There is a bug with ASP.NET that you have to change the page language from VBNet to VB (https://bugzilla.novell.com/show_bug.cgi?id=361351) Rolf I believe that the problem lies in the prefix. > Namely, I haven't figured out what prefix to use with the configure. > Mono is installed in /Library/Frameworks/Mono.framework . I tried -- > prefix=/Library/Frameworks and --prefix=/Library/Frameworks/ > Mono.framework without success. Wondering if anyone has any insight > into what the correct prefix should be. > > Rev. Jeremy R. Geerdes, Pastor > Debra Heights Wesleyan Church > 4025 Lower Beaver Rd. > Des Moines, IA 50310 > > p/f: (515) 279-5212 > h: (515) 277-7491 > jgeerdes at mchsi.com > > > > > _______________________________________________ > Mono-vb mailing list > Mono-vb at lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-vb > > > -- > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.516 / Virus Database: 269.20.4/1277 - Release Date: > 13/02/2008 20:00 From aubreyja at gmail.com Fri Feb 15 09:52:58 2008 From: aubreyja at gmail.com (Jason Aubrey) Date: Fri, 15 Feb 2008 08:52:58 -0600 Subject: [mono-vb] Installing mono-vb on OSX Leopard In-Reply-To: <004f01c86fdf$92946cd0$b7bd4670$@com> References: <849CC0BD-30FE-4A4D-AC2A-4464B9C49379@mchsi.com> <004f01c86fdf$92946cd0$b7bd4670$@com> Message-ID: Hi All, I read somewhere, a blog post I think, that the mono vb compiler doesn't support partial classes. Does this explain why when I try to compile an asp.net + vb page with codebehind I get, to paraphrase: vbnc: Error (Line 0): object reference not set to instance of an object? If so, any workarounds? If not, any suggestions? Thanks in advance! Jason PS: I'm trying to prove (by virtuous example) in a Web Application Development class using asp.net and vb (text = sams asp.net unleashed) that it can be done with mono. The single page aspx files seem to work fine, but the codebehind pages are giving me an error. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-vb/attachments/20080215/134c3ef4/attachment.html From rolflists at ya.com Fri Feb 15 18:31:12 2008 From: rolflists at ya.com (Rolf Bjarne Kvinge) Date: Sat, 16 Feb 2008 00:31:12 +0100 Subject: [mono-vb] Installing mono-vb on OSX Leopard In-Reply-To: References: <849CC0BD-30FE-4A4D-AC2A-4464B9C49379@mchsi.com> <004f01c86fdf$92946cd0$b7bd4670$@com> Message-ID: <006901c8702a$db4b6d70$91e24850$@com> >From: mono-vb-bounces at lists.ximian.com [mailto:mono-vb-bounces at lists.ximian.com] On Behalf Of Jason Aubrey >Sent: viernes, 15 de febrero de 2008 15:53 >To: mono-vb at lists.ximian.com >Subject: Re: [mono-vb] Installing mono-vb on OSX Leopard > >Hi All, > >I read somewhere, a blog post I think, that the mono vb compiler doesn't support partial classes. The mono vb compiler (vbnc) supports partial classes. >Does this explain why when I try to compile an asp.net + vb page with codebehind I get, to paraphrase: vbnc: Error (Line 0): object reference not set to instance of an object?? This is a crash in the compiler. >If so, any workarounds? If not, any suggestions? File a bug or send me a small test case I can use to reproduce the crash :) > >Thanks in advance! > >Jason > >PS: I'm trying to prove (by virtuous example) in a Web Application Development class using asp.net and vb (text = sams asp.net unleashed) that it can be done with mono. The single page aspx files seem to work fine, but the >codebehind pages are giving me an error. From njolin at cvikota.com Tue Feb 12 14:07:23 2008 From: njolin at cvikota.com (Nick Jolin) Date: Tue, 12 Feb 2008 13:07:23 -0600 Subject: [mono-vb] AP.net - Compilation error if Button on the page Message-ID: <047501c86daa$80041c00$800c5400$@com> I am successfully running: Ubuntu 7.10 Server edition Apache2.? Mono 1.2.6 Mod_mono_1.2.6 compiled from source I can get a ASP.net vb website to display correctly if there are no webcontrols on the page. I can successfully call out to Mysql and return data to a datagrid or response, but as soon as I put a button on the page, and try to run, I get a compilation error: (0,0) : error VBNC_CRASH: Visual Basic.Net Compiler version 0.0.0.5850 Copyright (C) 2004-2007 Rolf Bjarne Kvinge. All rights reserved. /tmp/www-data-temp-aspnet-0/304e7d8b/15ead3c4.0.vb (12,18) : Warning VBNC99998: Option Strict Off will probably fail. Error : VBNC99999: Unexpected error: Cannot cast from source type to destination type. at vbnc.EventMemberSpecifier.ResolveCode (vbnc.ResolveInfo Info) [0x00000] at vbnc.Helper.ResolveCodeCollection (IEnumerable Collection, vbnc.ResolveInfo Info) [0x00000] at vbnc.BaseList`1[vbnc.EventMemberSpecifier].ResolveCode (vbnc.ResolveInfo ) [0x00000] at vbnc.HandlesClause.ResolveCode (vbnc.ResolveInfo Info) [0x00000] at vbnc.HandlesOrImplements.ResolveCode (vbnc.ResolveInfo Info) [0x00000] at vbnc.SubDeclaration.ResolveCode (vbnc.ResolveInfo Info) [0x00000] at vbnc.Helper.ResolveCodeCollection (IEnumerable Collection, vbnc.ResolveInfo Info) [0x00000] at vbnc.BaseObjects`1[vbnc.IMember].ResolveCode (vbnc.ResolveInfo ) [0x00000] at vbnc.TypeDeclaration.ResolveCode (vbnc.ResolveInfo Info) [0x00000] at vbnc.ClassDeclaration.ResolveCode (vbnc.ResolveInfo Info) [0x00000] at vbnc.AssemblyDeclaration.ResolveCode (vbnc.ResolveInfo Info) [0x00000] at vbnc.Compiler.Compile_Resolve () [0x00000] at vbnc.Compiler.Compile () [0x00000] Compilation took 00:00:03.3108420 Any help would be greatly appreciated. Thanks Nick -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-vb/attachments/20080212/6de670c6/attachment.html From rolflists at ya.com Tue Feb 19 19:44:38 2008 From: rolflists at ya.com (Rolf Bjarne Kvinge) Date: Wed, 20 Feb 2008 01:44:38 +0100 Subject: [mono-vb] AP.net - Compilation error if Button on the page In-Reply-To: <047501c86daa$80041c00$800c5400$@com> References: <047501c86daa$80041c00$800c5400$@com> Message-ID: <010201c87359$c6ae3b90$540ab2b0$@com> Hi, This looks like a compiler bug. Can you send me a simple sample that reproduces this issue? Rolf From: mono-vb-bounces at lists.ximian.com [mailto:mono-vb-bounces at lists.ximian.com] On Behalf Of Nick Jolin Sent: martes, 12 de febrero de 2008 20:07 To: mono-vb at lists.ximian.com Subject: [mono-vb] AP.net - Compilation error if Button on the page I am successfully running: Ubuntu 7.10 Server edition Apache2.? Mono 1.2.6 Mod_mono_1.2.6 compiled from source I can get a ASP.net vb website to display correctly if there are no webcontrols on the page. I can successfully call out to Mysql and return data to a datagrid or response, but as soon as I put a button on the page, and try to run, I get a compilation error: (0,0) : error VBNC_CRASH: Visual Basic.Net Compiler version 0.0.0.5850 Copyright (C) 2004-2007 Rolf Bjarne Kvinge. All rights reserved. /tmp/www-data-temp-aspnet-0/304e7d8b/15ead3c4.0.vb (12,18) : Warning VBNC99998: Option Strict Off will probably fail. Error : VBNC99999: Unexpected error: Cannot cast from source type to destination type. at vbnc.EventMemberSpecifier.ResolveCode (vbnc.ResolveInfo Info) [0x00000] at vbnc.Helper.ResolveCodeCollection (IEnumerable Collection, vbnc.ResolveInfo Info) [0x00000] at vbnc.BaseList`1[vbnc.EventMemberSpecifier].ResolveCode (vbnc.ResolveInfo ) [0x00000] at vbnc.HandlesClause.ResolveCode (vbnc.ResolveInfo Info) [0x00000] at vbnc.HandlesOrImplements.ResolveCode (vbnc.ResolveInfo Info) [0x00000] at vbnc.SubDeclaration.ResolveCode (vbnc.ResolveInfo Info) [0x00000] at vbnc.Helper.ResolveCodeCollection (IEnumerable Collection, vbnc.ResolveInfo Info) [0x00000] at vbnc.BaseObjects`1[vbnc.IMember].ResolveCode (vbnc.ResolveInfo ) [0x00000] at vbnc.TypeDeclaration.ResolveCode (vbnc.ResolveInfo Info) [0x00000] at vbnc.ClassDeclaration.ResolveCode (vbnc.ResolveInfo Info) [0x00000] at vbnc.AssemblyDeclaration.ResolveCode (vbnc.ResolveInfo Info) [0x00000] at vbnc.Compiler.Compile_Resolve () [0x00000] at vbnc.Compiler.Compile () [0x00000] Compilation took 00:00:03.3108420 Any help would be greatly appreciated. Thanks Nick -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-vb/attachments/20080220/3b218fb2/attachment-0001.html From bitez57 at gmail.com Fri Feb 29 11:06:03 2008 From: bitez57 at gmail.com (John Walker) Date: Fri, 29 Feb 2008 16:06:03 +0000 Subject: [mono-vb] mono stories Message-ID: <325919950802290806l4023aa3fh95ecc50e239667b5@mail.gmail.com> Hello everyone, I'm a a final year student at the university of Portsmouth in England, I'm currently doing a project on cross-platform development using VB and Mono and I was wondering if anyone would be willing to share any stories or comments on their experiences using Mono, using VB to develop applications using Mono or any errors or bugs encountered and how they where overcome. Any information would be helpful and would be gratefully received. thanks for any help, John Walker. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.ximian.com/pipermail/mono-vb/attachments/20080229/13b10253/attachment.html