[mono-vb] VBNC Crash

Rolf Bjarne Kvinge rolflists at ya.com
Thu Oct 8 04:26:04 EDT 2009


Hi,

> 
> Hi,
> 
> Im sorry, my bad. I thought i had seen it in VBCompiler page in mono,
> but i guess i was wrong.
> 
> >Everything in VB8 (which came with
> > VS2005) is supported, anything newer (VB9 / VS2008) is not.
> 
> Well something that occurred to me when i read this. If Methods in VB9
> are not supported, then why am i getting no issues under the "Missing"
> section of the Mono Migration Analyzer? Technically, when you say its not
> supported, shouldn't it mean that those methods are missing from mono?

With VB8 I mean the VB compiler which came with VS2005 (and with VB9 I mean
the VB compiler that came with VS2008). If you compile and run on Windows
you're using MS' VB compiler (vbc), and if you run MoMA on the assemblies
you have then you won't see any problems. However if you copy your web app
to linux and run with mono you're using mono's VB compiler (vbnc), and here
is where the problem comes: it doesn't know how to compile the sources if
you used new features in the VB9 language (extension methods is one of
them).

One way around this is to use precompiled web sites, here are a couple of
links that might help you:

http://www.mono-project.com/Release_Notes_Mono_2.4#Precompiled_Web_Sites
http://gonzalo.name/blog/archive/archive-2009-Feb.html

Rolf

> 
> Thanks,
> Vijay.
> 
> 
> Rolf Bjarne Kvinge-2 wrote:
> >
> > Hi,
> >
> >>
> >> Hi, I have a really large ASP.Net Web application that i need to
> port
> >> into other platforms. The Web app that i'm trying to port is mainly
> > written
> >> in vb, and references a lot of custom dll's that have also been
> written
> >> in
> >> vb. I tried to build the application from bottom up, by creating a
> blank
> >> project that has nothing but a page with a label. Mono Migration
> Analyzer
> >> pointed a few issues with the dll's, which i could find a way
> around, or
> >> temporarily commented out. For testing purposes, i'm using XSP2
> server.
> > The same
> >> set of dll's in a c#web project compiles and displays the page,
> whereas
> >> it
> >> fails to do so in a VB web Project. A lot of investigation with one
> of
> >> the
> > dll's
> >> showed me that Extension Methods was the issue with that particular
> >> dll. But in the VB compiler page in Mono site tells me that
> extension
> > methods do
> >> work.
> >
> > Where exactly did you read this? Because it is not correct, extension
> > methods are not supported in VB yet. Everything in VB8 (which came
> with
> > VS2005) is supported, anything newer (VB9 / VS2008) is not.
> >
> > Rolf
> >
> >>
> >> I would like to know why i get a vbnc crash inspite of the method
> being
> >> supported. Is it something im doing wrong??
> >> Btw im using Mono- 2.4.2.3.
> >>
> >> Any help would be great.
> >>
> >> Thanks,
> >> Vijay.
> >> --
> >> View this message in context: http://www.nabble.com/VBNC-Crash-
> >> tp25749738p25749738.html
> >> Sent from the Mono - VB mailing list archive at Nabble.com.
> >>
> >> _______________________________________________
> >> Mono-vb mailing list
> >> Mono-vb at lists.ximian.com
> >> http://lists.ximian.com/mailman/listinfo/mono-vb
> >
> > _______________________________________________
> > Mono-vb mailing list
> > Mono-vb at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-vb
> >
> >
> 
> --
> View this message in context: http://www.nabble.com/VBNC-Crash-
> tp25749738p25783552.html
> Sent from the Mono - VB mailing list archive at Nabble.com.
> 
> _______________________________________________
> Mono-vb mailing list
> Mono-vb at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-vb



More information about the Mono-vb mailing list