From glab at email.si Tue Jun 3 23:56:13 2008 From: glab at email.si (Gregor001) Date: Tue, 3 Jun 2008 20:56:13 -0700 (PDT) Subject: [mono-vb] BASIC STEPS_WIN (Microsoft Visual Basic 2008 express) -> LINUX (SLAX) Message-ID: <17638670.post@talk.nabble.com> hi first of all, this is a good idea to make program to work on different platforms. now, after installing mono, i just don't know what to do to make my program work in linux (slax). i program in MS Visual Basic 2008 express edition, but i make so-called "Windows Forms Applocation" and not "console..". Here is everything half-prepaired. Now- ok i know how to compile, but where to click to compile for LINUX? it seems, i have to copy exe and other files (maybe bas to some folder), then run this mono console and then what to entry??? this program is quite useful, but no easy steps-how to... that is quite bad for such good and big project. can u please write short easy step-by-step tutorial for MS Visual Basic 2008 express- how to convert for linux, please? still questions: 1) on linux ("slax" or other) - do i have to have anything more installed on linux like MONO for linux (so that programs can work on linux then)? thank you soo much for help Gregor, EUROPE Slovenia PS: an easy step-by-step tutorial is very much needed for not-advanced programmers maybe with pictures if it is hard...:-) -- View this message in context: http://www.nabble.com/BASIC-STEPS_WIN-%28Microsoft-Visual-Basic-2008-express%29--%3E-LINUX-%28SLAX%29-tp17638670p17638670.html Sent from the Mono - VB mailing list archive at Nabble.com. From rolflists at ya.com Wed Jun 4 12:29:30 2008 From: rolflists at ya.com (Rolf Bjarne Kvinge) Date: Wed, 4 Jun 2008 18:29:30 +0200 Subject: [mono-vb] BASIC STEPS_WIN (Microsoft Visual Basic 2008 express) -> LINUX (SLAX) In-Reply-To: <17638670.post@talk.nabble.com> References: <17638670.post@talk.nabble.com> Message-ID: <06ca01c8c660$2f296060$8d7c2120$@com> > -----Original Message----- > From: mono-vb-bounces at lists.ximian.com [mailto:mono-vb- > bounces at lists.ximian.com] On Behalf Of Gregor001 > Sent: mi?rcoles, 04 de junio de 2008 5:56 > To: mono-vb at lists.ximian.com > Subject: [mono-vb] BASIC STEPS_WIN (Microsoft Visual Basic 2008 > express) -> LINUX (SLAX) > > > hi > > > first of all, this is a good idea to make program to work on different > platforms. now, after installing mono, i just don't know what to do to make my > program work in linux (slax). > > i program in MS Visual Basic 2008 express edition, but i make so-called > "Windows Forms Applocation" and not "console..". Here is everything > half-prepaired. Now- ok i know how to compile, but where to click to > compile for LINUX? You don't compile specifically for linux, just hit the normal compile button to compile. > it seems, i have to copy exe and other files Exactly. > (maybe bas to some folder), No, only exe and dlls should be necessary. > then run this mono console and then what to entry??? mono application.exe > this program is quite useful, but no easy steps-how to... that is quite > bad for such good and big project. > > > can u please write short easy step-by-step tutorial for MS Visual Basic > 2008 express- how to convert for linux, please? There shouldn't be anything to convert. Applications should just work (unless you coded in a way which is windows-specific, such as using hard-coded path names to "C:\file.txt" for instance) Rolf > > still questions: > 1) on linux ("slax" or other) - do i have to have anything more > installed on > linux like MONO for linux (so that programs can work on linux then)? > > > thank you soo much for help > Gregor, > EUROPE > Slovenia > > PS: an easy step-by-step tutorial is very much needed for not-advanced > programmers > maybe with pictures if it is hard...:-) > -- > View this message in context: http://www.nabble.com/BASIC-STEPS_WIN- > %28Microsoft-Visual-Basic-2008-express%29--%3E-LINUX-%28SLAX%29- > tp17638670p17638670.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 > No virus found in this incoming message. > Checked by AVG. > Version: 8.0.100 / Virus Database: 269.24.6/1481 - Release Date: > 03/06/2008 19:31 From glab at email.si Wed Jun 4 14:11:15 2008 From: glab at email.si (Gregor001) Date: Wed, 4 Jun 2008 11:11:15 -0700 (PDT) Subject: [mono-vb] BASIC STEPS_WIN (Microsoft Visual Basic 2008 express) -> LINUX (SLAX) In-Reply-To: <06ca01c8c660$2f296060$8d7c2120$@com> References: <17638670.post@talk.nabble.com> <06ca01c8c660$2f296060$8d7c2120$@com> Message-ID: <17653017.post@talk.nabble.com> 1) where should i copy exe and dll's? in which directory? 2) dll's should be with exe, right? 3) i just start mono aplication.exe-aplication is name of my program? i start mono from : "Mono-1.9.1 Command Prompt"? thnx. i think i will write simple step-by-step tutorial for "dumb"users like me. i mean, i just do'nt know really what to click. i wish to have exact steps...do this...do this...then this... finish.. no wasted time :-) Rolf Bjarne Kvinge-2 wrote: > > > >> -----Original Message----- >> From: mono-vb-bounces at lists.ximian.com [mailto:mono-vb- >> bounces at lists.ximian.com] On Behalf Of Gregor001 >> Sent: mi?rcoles, 04 de junio de 2008 5:56 >> To: mono-vb at lists.ximian.com >> Subject: [mono-vb] BASIC STEPS_WIN (Microsoft Visual Basic 2008 >> express) -> LINUX (SLAX) >> >> >> hi >> >> >> first of all, this is a good idea to make program to work on different >> platforms. now, after installing mono, i just don't know what to do to > make my >> program work in linux (slax). >> >> i program in MS Visual Basic 2008 express edition, but i make so-called >> "Windows Forms Applocation" and not "console..". Here is everything >> half-prepaired. Now- ok i know how to compile, but where to click to >> compile for LINUX? > > You don't compile specifically for linux, just hit the normal compile > button > to compile. > >> it seems, i have to copy exe and other files > > Exactly. > >> (maybe bas to some folder), > No, only exe and dlls should be necessary. > >> then run this mono console and then what to entry??? > > mono application.exe > >> this program is quite useful, but no easy steps-how to... that is quite >> bad for such good and big project. >> >> >> can u please write short easy step-by-step tutorial for MS Visual Basic >> 2008 express- how to convert for linux, please? > > There shouldn't be anything to convert. Applications should just work > (unless you coded in a way which is windows-specific, such as using > hard-coded path names to "C:\file.txt" for instance) > > Rolf > >> >> still questions: >> 1) on linux ("slax" or other) - do i have to have anything more >> installed on >> linux like MONO for linux (so that programs can work on linux then)? >> >> >> thank you soo much for help >> Gregor, >> EUROPE >> Slovenia >> >> PS: an easy step-by-step tutorial is very much needed for not-advanced >> programmers >> maybe with pictures if it is hard...:-) >> -- >> View this message in context: http://www.nabble.com/BASIC-STEPS_WIN- >> %28Microsoft-Visual-Basic-2008-express%29--%3E-LINUX-%28SLAX%29- >> tp17638670p17638670.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 >> No virus found in this incoming message. >> Checked by AVG. >> Version: 8.0.100 / Virus Database: 269.24.6/1481 - Release Date: >> 03/06/2008 19:31 > > _______________________________________________ > 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/BASIC-STEPS_WIN-%28Microsoft-Visual-Basic-2008-express%29--%3E-LINUX-%28SLAX%29-tp17638670p17653017.html Sent from the Mono - VB mailing list archive at Nabble.com. From albertoleonamador at gmail.com Thu Jun 5 17:00:21 2008 From: albertoleonamador at gmail.com (A. Leon) Date: Thu, 5 Jun 2008 14:00:21 -0700 (PDT) Subject: [mono-vb] Help with code blocks inside html tags in .Aspx files Message-ID: <17679428.post@talk.nabble.com> Hi, I'm also a new mono user, and I'm actually trying to port an existing asp.net application to mono. I've encountered a problem with code blocks within html tags and cant find a way to run around it. To better explain my problem I have this simple sample code: <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> Mono Tester
<%=strString%>
Mono Tester


the code behind file looks like this: Partial Class _Default Inherits System.Web.UI.Page Protected strString As String Protected intId As Integer Protected Sub form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) strString = "Random data" intId = 1 Me.TextBox1.Text = strString End Sub End Class I have no problems running the application on windows, but on mono every code block inside a tag causes an error: Description: Error compiling a resource required to service this request. Review your source file and modify it to fix this error. Compiler Error Message: /tmp/root-temp-aspnet-0/da6ebdb7/App_Web_12e5d8ea_1.vb(191,1) : error VBNC30037: Symbol is not valid. /tmp/root-temp-aspnet-0/da6ebdb7/App_Web_12e5d8ea_1.vb(204,1) : error VBNC30037: Symbol is not valid. /tmp/root-temp-aspnet-0/da6ebdb7/App_Web_12e5d8ea_1.vb(212,1) : error VBNC30037: Symbol is not valid. Source Error: Line 189: #ExternalSource(/srv/www/htdocs/payswitch/PFCLIENT/Default.aspx, 11) Line 190: __output.Write(""&Microsoft.VisualBasic.ChrW(10)&" "&Microsoft.VisualBasic.ChrW(10)&"
References: <17676010.post@talk.nabble.com> Message-ID: <17680166.post@talk.nabble.com> I had the same problem, what I did was to remove the handles clause and to add the call to the procedure in the control tag in the aspx page. So in your example it would look like this: It worked for me, hope it works for you too. MonoNewbie wrote: > > Hi, > > I am a new Mono user, and have the following goal. Basically, I would like > to develop ASP.NET sites in Visual Web Developer Express 2008 using Visual > Basic and serve the ASP.NET sites on Centos 4 with Mono. . > > I have created a simple ASP.NET page with the following code: > <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" > Inherits="_Default" %> > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > > > > Untitled Page > > >
>
> > > > >
>
> > > > And here is the code-behind: > > > Partial Class _Default > > Inherits System.Web.UI.Page > > Protected Sub TestButton_Click(ByVal sender As Object, ByVal e As > System.EventArgs) Handles TestButton.Click > > > > CountLabel.Text = "You clicked the button!" > > End Sub > > End Class > > > I am currently using the web.config file that comes with the "test" XSP > server... > > I get the following error when I try loading the page. > > Description: Error compiling a resource required to service this request. > Review your source file and modify it to fix this error. > > Compiler Error Message: (0,0) : error VBNC_CRASH: Visual Basic.Net > Compiler version 0.0.0.5851 > Copyright (C) 2004-2007 Rolf Bjarne Kvinge. All rights reserved. > > > /tmp/apache-temp-aspnet-0/9bc357e7/App_Web_57841eb3_1.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 Info) [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 Info) > [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:04.8297640 > > /Default.aspx > > > When I remove the "Handles" clause, the page loads, but of course doesn't > function properly. > > If I create the equivalent page using C# instead, everything works fine. > > I have read that there might be a known error regarding the Handles > clause... has this been resolved? Is it relevant to the error I am > receiving? > > I have installed the latest 1.9.1 version of Mono with yum, but I am not > sure I have the latest version of mono-basic. How can I check that? > > Thanks for any help! > > > > > > -- View this message in context: http://www.nabble.com/VBNC-Error%3A-Handles-Clause--tp17676010p17680166.html Sent from the Mono - VB mailing list archive at Nabble.com. From lmc_smz at yahoo.com Thu Jun 5 13:55:43 2008 From: lmc_smz at yahoo.com (MonoNewbie) Date: Thu, 5 Jun 2008 10:55:43 -0700 (PDT) Subject: [mono-vb] VBNC Error: Handles Clause? Message-ID: <17676010.post@talk.nabble.com> Hi, I am a new Mono user, and have the following goal. Basically, I would like to develop ASP.NET sites in Visual Web Developer Express 2008 using Visual Basic and serve the ASP.NET sites on Centos 4 with Mono. . I have created a simple ASP.NET page with the following code: <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> Untitled Page
And here is the code-behind: Partial Class _Default Inherits System.Web.UI.Page Protected Sub TestButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles TestButton.Click CountLabel.Text = "You clicked the button!" End Sub End Class I am currently using the web.config file that comes with the "test" XSP server... I get the following error when I try loading the page. Description: Error compiling a resource required to service this request. Review your source file and modify it to fix this error. Compiler Error Message: (0,0) : error VBNC_CRASH: Visual Basic.Net Compiler version 0.0.0.5851 Copyright (C) 2004-2007 Rolf Bjarne Kvinge. All rights reserved. /tmp/apache-temp-aspnet-0/9bc357e7/App_Web_57841eb3_1.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 Info) [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 Info) [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:04.8297640 /Default.aspx When I remove the "Handles" clause, the page loads, but of course doesn't function properly. If I create the equivalent page using C# instead, everything works fine. I have read that there might be a known error regarding the Handles clause... has this been resolved? Is it relevant to the error I am receiving? I have installed the latest 1.9.1 version of Mono with yum, but I am not sure I have the latest version of mono-basic. How can I check that? Thanks for any help! -- View this message in context: http://www.nabble.com/VBNC-Error%3A-Handles-Clause--tp17676010p17676010.html Sent from the Mono - VB mailing list archive at Nabble.com. From rolflists at ya.com Fri Jun 6 18:41:23 2008 From: rolflists at ya.com (Rolf Bjarne Kvinge) Date: Sat, 7 Jun 2008 00:41:23 +0200 Subject: [mono-vb] VBNC Error: Handles Clause? In-Reply-To: <17676010.post@talk.nabble.com> References: <17676010.post@talk.nabble.com> Message-ID: <073701c8c826$747890b0$5d69b210$@com> > > When I remove the "Handles" clause, the page loads, but of course > doesn't function properly. > > If I create the equivalent page using C# instead, everything works > fine. > > I have read that there might be a known error regarding the Handles > clause... has this been resolved? Is it relevant to the error I am > receiving? Yes, it?s a known bug which has already been filed. It hasn?t been fixed yet though. > > I have installed the latest 1.9.1 version of Mono with yum, but I am > not sure I have the latest version of mono-basic. How can I check that? "rpm -qa | grep mono-basic" might work, but know nothing about yum. However as I said this bug hasn't been fixed yet, so installing a newer version won't help. Rolf > Thanks for any help! > > > > > > -- > View this message in context: http://www.nabble.com/VBNC-Error%3A- > Handles-Clause--tp17676010p17676010.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 > No virus found in this incoming message. > Checked by AVG. > Version: 8.0.100 / Virus Database: 270.0.0/1486 - Release Date: > 05/06/2008 18:29 From rolflists at ya.com Fri Jun 6 18:45:14 2008 From: rolflists at ya.com (Rolf Bjarne Kvinge) Date: Sat, 7 Jun 2008 00:45:14 +0200 Subject: [mono-vb] BASIC STEPS_WIN (Microsoft Visual Basic 2008 express) -> LINUX (SLAX) In-Reply-To: <17653017.post@talk.nabble.com> References: <17638670.post@talk.nabble.com> <06ca01c8c660$2f296060$8d7c2120$@com> <17653017.post@talk.nabble.com> Message-ID: <073b01c8c827$0058abb0$010a0310$@com> > -----Original Message----- > From: mono-vb-bounces at lists.ximian.com [mailto:mono-vb- > bounces at lists.ximian.com] On Behalf Of Gregor001 > Sent: mi?rcoles, 04 de junio de 2008 20:11 > To: mono-vb at lists.ximian.com > Subject: Re: [mono-vb] BASIC STEPS_WIN (Microsoft Visual Basic 2008 > express) -> LINUX (SLAX) > > > 1) where should i copy exe and dll's? in which directory? anywhere you want > 2) dll's should be with exe, right? Generally yes (it should have the same structure as where VS puts them, if your exe is normally in somedir/application.exe and your dll is in somedir/anotherdir/application.dll then you'll have to replicate that structure. > 3) i just start mono aplication.exe-aplication is name of my program? > > i start mono from : "Mono-1.9.1 Command Prompt"? Yes. The easiest way will probably be to do: Open the Mono Command Prompt execute "cd /D X:/myproject/bin/Debug/" mono myapplication.exe where X:/myproject/bin/Debug is the directory where VS puts the executable and myapplication.exe is the name of your executable. Rolf > > > thnx. > i think i will write simple step-by-step tutorial for "dumb"users like > me. i > mean, i just do'nt know really what to click. i wish to have exact > steps...do this...do this...then this... finish.. no wasted time :-) > > > > > Rolf Bjarne Kvinge-2 wrote: > > > > > > > >> -----Original Message----- > >> From: mono-vb-bounces at lists.ximian.com [mailto:mono-vb- > >> bounces at lists.ximian.com] On Behalf Of Gregor001 > >> Sent: mi?rcoles, 04 de junio de 2008 5:56 > >> To: mono-vb at lists.ximian.com > >> Subject: [mono-vb] BASIC STEPS_WIN (Microsoft Visual Basic 2008 > >> express) -> LINUX (SLAX) > >> > >> > >> hi > >> > >> > >> first of all, this is a good idea to make program to work on > different > >> platforms. now, after installing mono, i just don't know what to do > to > > make my > >> program work in linux (slax). > >> > >> i program in MS Visual Basic 2008 express edition, but i make so- > called > >> "Windows Forms Applocation" and not "console..". Here is everything > >> half-prepaired. Now- ok i know how to compile, but where to click to > >> compile for LINUX? > > > > You don't compile specifically for linux, just hit the normal compile > > button > > to compile. > > > >> it seems, i have to copy exe and other files > > > > Exactly. > > > >> (maybe bas to some folder), > > No, only exe and dlls should be necessary. > > > >> then run this mono console and then what to entry??? > > > > mono application.exe > > > >> this program is quite useful, but no easy steps-how to... that is > quite > >> bad for such good and big project. > >> > >> > >> can u please write short easy step-by-step tutorial for MS Visual > Basic > >> 2008 express- how to convert for linux, please? > > > > There shouldn't be anything to convert. Applications should just work > > (unless you coded in a way which is windows-specific, such as using > > hard-coded path names to "C:\file.txt" for instance) > > > > Rolf > > > >> > >> still questions: > >> 1) on linux ("slax" or other) - do i have to have anything more > >> installed on > >> linux like MONO for linux (so that programs can work on linux then)? > >> > >> > >> thank you soo much for help > >> Gregor, > >> EUROPE > >> Slovenia > >> > >> PS: an easy step-by-step tutorial is very much needed for not- > advanced > >> programmers > >> maybe with pictures if it is hard...:-) > >> -- > >> View this message in context: http://www.nabble.com/BASIC-STEPS_WIN- > >> %28Microsoft-Visual-Basic-2008-express%29--%3E-LINUX-%28SLAX%29- > >> tp17638670p17638670.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 > >> No virus found in this incoming message. > >> Checked by AVG. > >> Version: 8.0.100 / Virus Database: 269.24.6/1481 - Release Date: > >> 03/06/2008 19:31 > > > > _______________________________________________ > > 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/BASIC-STEPS_WIN- > %28Microsoft-Visual-Basic-2008-express%29--%3E-LINUX-%28SLAX%29- > tp17638670p17653017.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 > > No virus found in this incoming message. > Checked by AVG. > Version: 8.0.100 / Virus Database: 270.0.0/1484 - Release Date: > 04/06/2008 16:40 From rolflists at ya.com Fri Jun 6 18:47:36 2008 From: rolflists at ya.com (Rolf Bjarne Kvinge) Date: Sat, 7 Jun 2008 00:47:36 +0200 Subject: [mono-vb] Help with code blocks inside html tags in .Aspx files In-Reply-To: <17679428.post@talk.nabble.com> References: <17679428.post@talk.nabble.com> Message-ID: <073c01c8c827$524b3780$f6e1a680$@com> Hi, > I have no problems running the application on windows, but on mono > every code block inside a tag causes an error: > > Description: Error compiling a resource required to service this > request. > Review your source file and modify it to fix this error. > > Compiler Error Message: > /tmp/root-temp-aspnet-0/da6ebdb7/App_Web_12e5d8ea_1.vb(191,1) : error > VBNC30037: Symbol is not valid. > /tmp/root-temp-aspnet-0/da6ebdb7/App_Web_12e5d8ea_1.vb(204,1) : error > VBNC30037: Symbol is not valid. > /tmp/root-temp-aspnet-0/da6ebdb7/App_Web_12e5d8ea_1.vb(212,1) : error > VBNC30037: Symbol is not valid. > > Source Error: > > Line 189: > #ExternalSource(/srv/www/htdocs/payswitch/PFCLIENT/Default.aspx, 11) > Line 190: > __output.Write(""&Microsoft.VisualBasic.ChrW(10)&" > "&Microsoft.VisualBasic.ChrW(10)&"
Line 191: #End ExternalSource > Line 192: > Line 193: #ExternalSource(@@inner_string@@, 1) > Which version of mono are you using? This should be fixed in newer versions, it is in 1.9 for sure, might be in slightly older versions too (can't remember exactly when I fixed it). Rolf > > if I remove the code blocks located inside tags, the application runs > ok, > any other way produces this error. > > The problem is that in the actual application I'm working on this is is > used > heavily, so I would like to know if there's any way to work around this > problem. > > Any suggestions or ideas are very welcome! > > Thanks in advance for your time and cooperation, > Alberto Le?n > > > -- > View this message in context: http://www.nabble.com/Help-with-code- > blocks-inside-html-tags-in-.Aspx-files-tp17679428p17679428.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 > > No virus found in this incoming message. > Checked by AVG. > Version: 8.0.100 / Virus Database: 270.0.0/1484 - Release Date: > 04/06/2008 16:40 From chaisen1 at hotmail.com Mon Jun 9 23:36:17 2008 From: chaisen1 at hotmail.com (jeffchaisen) Date: Mon, 9 Jun 2008 20:36:17 -0700 (PDT) Subject: [mono-vb] mono-basic running error,help! Message-ID: <17747189.post@talk.nabble.com> i install the mono,libgdiplus&mono-basic on gentoo livecd(livecd maked by myself),i have a vb(name is Desero.exe) program now.error when i run mono Desero.exe in terminal. note:the program run in my gentoo system is ok,but in my livecd is bad. error message: Unhandled Exception: System.InvalidOperationException: An error occured while creating the form. See Exception.InnerException for details. The error is: An exception was thrown by the type initializer for System.Windows.Forms.WindowsFormsSynchronizationContext ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.WindowsFormsSynchronizationContext ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.XplatUI ---> System.ArgumentNullException: Could not open display (X-Server required. Check you DISPLAY environment variable) Parameter name: Display at System.Windows.Forms.XplatUIX11.SetDisplay (IntPtr display_handle) [0x00000] at System.Windows.Forms.XplatUIX11..ctor () [0x00000] at System.Windows.Forms.XplatUIX11.GetInstance () [0x00000] at System.Windows.Forms.XplatUI..cctor () [0x00000] --- End of inner exception stack trace --- at System.Windows.Forms.Control.get_CreateParams () [0x00000] at System.Windows.Forms.Control.InternalSizeFromClientSize (Size clientSize) [0x00000] at System.Windows.Forms.Control.ClientSizeFromSize (Size size) [0x00000] at System.Windows.Forms.Control..ctor () [0x00000] at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control:.ctor () at System.Windows.Forms.WindowsFormsSynchronizationContext..cctor () [0x00000] --- End of inner exception stack trace --- at System.Windows.Forms.Control..ctor () [0x00000] at System.Windows.Forms.ScrollableControl..ctor () [0x00000] at System.Windows.Forms.ContainerControl..ctor () [0x00000] at System.Windows.Forms.Form..ctor () [0x00000] at Desero.MainForm..ctor () [0x00000] at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (object,object[]) at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] --- End of inner exception stack trace --- at Desero.My.MyProject+MyForms.Create__Instance__[MainForm] (Desero.MainForm Instance) [0x00000] at Desero.My.MyProject+MyForms.get_MainForm () [0x00000] at Desero.MainForm.Main () [0x00000] -- View this message in context: http://www.nabble.com/mono-basic-running-error%2Chelp%21-tp17747189p17747189.html Sent from the Mono - VB mailing list archive at Nabble.com. From lmc_smz at yahoo.com Tue Jun 10 11:26:03 2008 From: lmc_smz at yahoo.com (MonoNewbie) Date: Tue, 10 Jun 2008 08:26:03 -0700 (PDT) Subject: [mono-vb] VBNC Error: Handles Clause? In-Reply-To: <17680166.post@talk.nabble.com> References: <17676010.post@talk.nabble.com> <17680166.post@talk.nabble.com> Message-ID: <17758158.post@talk.nabble.com> Thanks, that did work. -- View this message in context: http://www.nabble.com/VBNC-Error%3A-Handles-Clause--tp17676010p17758158.html Sent from the Mono - VB mailing list archive at Nabble.com. From davidtrholmes at hotmail.com Wed Jun 11 10:55:42 2008 From: davidtrholmes at hotmail.com (davideveloper) Date: Wed, 11 Jun 2008 07:55:42 -0700 (PDT) Subject: [mono-vb] Help with code blocks inside html tags in .Aspx files In-Reply-To: <073c01c8c827$524b3780$f6e1a680$@com> References: <17679428.post@talk.nabble.com> <073c01c8c827$524b3780$f6e1a680$@com> Message-ID: <17779815.post@talk.nabble.com> HI, The error occurs even in version 1.9.1, I reviewed the vb code generated by the VBCodeGenerator class, the lines 189 and 193 are not well formed (see code below), the first parameter for the ExternalSource directive must be a stringLiteral, the vbnc fails when parsing this parameter, the token @@inner_string@@ is not accepted by the compiler, oddly the compiler does not fails when parsing the token /Default.aspx, I think he should. It seems the error comes from the VBCodeGenerator class when generating the code from the aspx page. Line 189: #ExternalSource(/Default.aspx, 11) Line 193: #ExternalSource(@@inner_string@@, 1) Rolf Bjarne Kvinge-2 wrote: > > Hi, > >> I have no problems running the application on windows, but on mono >> every code block inside a tag causes an error: >> >> Description: Error compiling a resource required to service this >> request. >> Review your source file and modify it to fix this error. >> >> Compiler Error Message: >> /tmp/root-temp-aspnet-0/da6ebdb7/App_Web_12e5d8ea_1.vb(191,1) : error >> VBNC30037: Symbol is not valid. >> /tmp/root-temp-aspnet-0/da6ebdb7/App_Web_12e5d8ea_1.vb(204,1) : error >> VBNC30037: Symbol is not valid. >> /tmp/root-temp-aspnet-0/da6ebdb7/App_Web_12e5d8ea_1.vb(212,1) : error >> VBNC30037: Symbol is not valid. >> >> Source Error: >> >> Line 189: >> #ExternalSource(/srv/www/htdocs/payswitch/PFCLIENT/Default.aspx, 11) >> Line 190: >> __output.Write(""&Microsoft.VisualBasic.ChrW(10)&" >> "&Microsoft.VisualBasic.ChrW(10)&"
> Line 191: #End ExternalSource >> Line 192: >> Line 193: #ExternalSource(@@inner_string@@, 1) >> > > Which version of mono are you using? > > This should be fixed in newer versions, it is in 1.9 for sure, might be in > slightly older versions too (can't remember exactly when I fixed it). > > Rolf > >> >> if I remove the code blocks located inside tags, the application runs >> ok, >> any other way produces this error. >> >> The problem is that in the actual application I'm working on this is is >> used >> heavily, so I would like to know if there's any way to work around this >> problem. >> >> Any suggestions or ideas are very welcome! >> >> Thanks in advance for your time and cooperation, >> Alberto Le?n >> >> >> -- >> View this message in context: http://www.nabble.com/Help-with-code- >> blocks-inside-html-tags-in-.Aspx-files-tp17679428p17679428.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 >> >> No virus found in this incoming message. >> Checked by AVG. >> Version: 8.0.100 / Virus Database: 270.0.0/1484 - Release Date: >> 04/06/2008 16:40 > > _______________________________________________ > 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/Help-with-code-blocks-inside-html-tags-in-.Aspx-files-tp17679428p17779815.html Sent from the Mono - VB mailing list archive at Nabble.com. From rolflists at ya.com Wed Jun 11 11:09:55 2008 From: rolflists at ya.com (Rolf Bjarne Kvinge) Date: Wed, 11 Jun 2008 17:09:55 +0200 Subject: [mono-vb] Help with code blocks inside html tags in .Aspx files In-Reply-To: <17779815.post@talk.nabble.com> References: <17679428.post@talk.nabble.com> <073c01c8c827$524b3780$f6e1a680$@com> <17779815.post@talk.nabble.com> Message-ID: <00fa01c8cbd5$3b5dba50$b2192ef0$@com> > -----Original Message----- > From: mono-vb-bounces at lists.ximian.com [mailto:mono-vb- > bounces at lists.ximian.com] On Behalf Of davideveloper > Sent: mi?rcoles, 11 de junio de 2008 16:56 > To: mono-vb at lists.ximian.com > Subject: Re: [mono-vb] Help with code blocks inside html tags in .Aspx > files > > > HI, > > The error occurs even in version 1.9.1, I reviewed the vb code > generated by the VBCodeGenerator class, the lines 189 and 193 are not well formed > (see code below), the first parameter for the ExternalSource directive must > be a stringLiteral, the vbnc fails when parsing this parameter, the token > @@inner_string@@ is not accepted by the compiler, oddly the compiler > does not fails when parsing the token /Default.aspx, I think he should. It > seems the error comes from the VBCodeGenerator class when generating the code > from the aspx page. > > Line 189: #ExternalSource(/Default.aspx, 11) > > Line 193: #ExternalSource(@@inner_string@@, 1) > You're right, looking at when the releases was made it looks like it didn't get into neither 1.9 nor 1.9.1. It will be in the upcoming 2.0 release, or you can compile your own mono from svn HEAD which will also have this fixed. Rolf > > > Rolf Bjarne Kvinge-2 wrote: > > > > Hi, > > > >> I have no problems running the application on windows, but on mono > >> every code block inside a tag causes an error: > >> > >> Description: Error compiling a resource required to service this > >> request. > >> Review your source file and modify it to fix this error. > >> > >> Compiler Error Message: > >> /tmp/root-temp-aspnet-0/da6ebdb7/App_Web_12e5d8ea_1.vb(191,1) : > error > >> VBNC30037: Symbol is not valid. > >> /tmp/root-temp-aspnet-0/da6ebdb7/App_Web_12e5d8ea_1.vb(204,1) : > error > >> VBNC30037: Symbol is not valid. > >> /tmp/root-temp-aspnet-0/da6ebdb7/App_Web_12e5d8ea_1.vb(212,1) : > error > >> VBNC30037: Symbol is not valid. > >> > >> Source Error: > >> > >> Line 189: > >> #ExternalSource(/srv/www/htdocs/payswitch/PFCLIENT/Default.aspx, 11) > >> Line 190: > >> __output.Write(""&Microsoft.VisualBasic.ChrW(10)&" > >> "&Microsoft.VisualBasic.ChrW(10)&"
>> Line 191: #End ExternalSource > >> Line 192: > >> Line 193: #ExternalSource(@@inner_string@@, 1) > >> > > > > Which version of mono are you using? > > > > This should be fixed in newer versions, it is in 1.9 for sure, might > be in > > slightly older versions too (can't remember exactly when I fixed it). > > > > Rolf > > > >> > >> if I remove the code blocks located inside tags, the application > runs > >> ok, > >> any other way produces this error. > >> > >> The problem is that in the actual application I'm working on this is > is > >> used > >> heavily, so I would like to know if there's any way to work around > this > >> problem. > >> > >> Any suggestions or ideas are very welcome! > >> > >> Thanks in advance for your time and cooperation, > >> Alberto Le?n > >> > >> > >> -- > >> View this message in context: http://www.nabble.com/Help-with-code- > >> blocks-inside-html-tags-in-.Aspx-files-tp17679428p17679428.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 > >> > >> No virus found in this incoming message. > >> Checked by AVG. > >> Version: 8.0.100 / Virus Database: 270.0.0/1484 - Release Date: > >> 04/06/2008 16:40 > > > > _______________________________________________ > > 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/Help-with-code- > blocks-inside-html-tags-in-.Aspx-files-tp17679428p17779815.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 > > No virus found in this incoming message. > Checked by AVG. > Version: 8.0.100 / Virus Database: 270.2.0/1495 - Release Date: > 10/06/2008 17:11 From davidtrholmes at hotmail.com Wed Jun 11 17:23:05 2008 From: davidtrholmes at hotmail.com (davideveloper) Date: Wed, 11 Jun 2008 14:23:05 -0700 (PDT) Subject: [mono-vb] extract resources in aspx Message-ID: <17787580.post@talk.nabble.com> HI In MS.NET I can extract a resource string from the global resources using this statement '<%$ Resources:TestGlobal,ApplicationTitle %>' (an example is below, extracts the page title from global resources) but it seems not to work in Mono, does anyone know the correct syntax I must use for this to work in mono ? <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Test.aspx.vb" Inherits="testclass" Title='<%$ Resources:TestGlobal,ApplicationTitle %>' %> -- View this message in context: http://www.nabble.com/extract-resources-in-aspx-tp17787580p17787580.html Sent from the Mono - VB mailing list archive at Nabble.com. From domentarion at live.nl Wed Jun 11 09:34:03 2008 From: domentarion at live.nl (domentarion) Date: Wed, 11 Jun 2008 06:34:03 -0700 (PDT) Subject: [mono-vb] Problem Mono MXWachter Message-ID: <17777718.post@talk.nabble.com> Hello I have a problem with mono , i wanne start mxwatcher with mono this give me this error : mono MXWatcher.exe ** (MXWatcher.exe:8170): WARNING **: The following assembly referenced from /home/domentarion/Software/MXWatcher4.09-Pack.12/MXWatcher.exe could not be loaded: Assembly: Stimulsoft.Controls (assemblyref_index=6) Version: 1.9.0.0 Public Key: ebe6666cba19647a The assembly was not found in the Global Assembly Cache, a path listed in the MONO_PATH environment variable, or in the location of the executing assembly (/home/domentarion/Software/MXWatcher4.09-Pack.12/). ** (MXWatcher.exe:8170): WARNING **: Could not load file or assembly 'Stimulsoft.Controls, Version=1.9.0.0, Culture=neutral, PublicKeyToken=ebe6666cba19647a' or one of its dependencies. Unhandled Exception: System.TypeLoadException: Could not load type 'MXWatcher.MXWatcherForm' from assembly 'MXWatcher, Version=4.0.2.1, Culture=neutral'. Does anuone knows how i can run that program ? -- View this message in context: http://www.nabble.com/Problem-Mono-MXWachter-tp17777718p17777718.html Sent from the Mono - VB mailing list archive at Nabble.com. From rolflists at ya.com Mon Jun 16 03:01:11 2008 From: rolflists at ya.com (Rolf Bjarne Kvinge) Date: Mon, 16 Jun 2008 09:01:11 +0200 Subject: [mono-vb] Problem Mono MXWachter In-Reply-To: <17777718.post@talk.nabble.com> References: <17777718.post@talk.nabble.com> Message-ID: <000c01c8cf7e$c4706bb0$4d514310$@com> > -----Original Message----- > From: mono-vb-bounces at lists.ximian.com [mailto:mono-vb- > bounces at lists.ximian.com] On Behalf Of domentarion > Sent: mi?rcoles, 11 de junio de 2008 15:34 > To: mono-vb at lists.ximian.com > Subject: [mono-vb] Problem Mono MXWachter > > > Hello > > I have a problem with mono , i wanne start mxwatcher with mono this > give me > this error : > > mono MXWatcher.exe > > ** (MXWatcher.exe:8170): WARNING **: The following assembly referenced > from > /home/domentarion/Software/MXWatcher4.09-Pack.12/MXWatcher.exe could > not be > loaded: > Assembly: Stimulsoft.Controls (assemblyref_index=6) > Version: 1.9.0.0 > Public Key: ebe6666cba19647a > The assembly was not found in the Global Assembly Cache, a path listed > in > the MONO_PATH environment variable, or in the location of the executing > assembly (/home/domentarion/Software/MXWatcher4.09-Pack.12/). > > > ** (MXWatcher.exe:8170): WARNING **: Could not load file or assembly > 'Stimulsoft.Controls, Version=1.9.0.0, Culture=neutral, > PublicKeyToken=ebe6666cba19647a' or one of its dependencies. > Mono can't find this assembly, check if it's in the same directory as the executable. Rolf > Unhandled Exception: System.TypeLoadException: Could not load type > 'MXWatcher.MXWatcherForm' from assembly 'MXWatcher, Version=4.0.2.1, > Culture=neutral'. > > Does anuone knows how i can run that program ? > -- > View this message in context: http://www.nabble.com/Problem-Mono- > MXWachter-tp17777718p17777718.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 > No virus found in this incoming message. > Checked by AVG. > Version: 8.0.100 / Virus Database: 270.3.0/1503 - Release Date: > 14/06/2008 18:02 From rolflists at ya.com Mon Jun 16 10:02:36 2008 From: rolflists at ya.com (Rolf Bjarne Kvinge) Date: Mon, 16 Jun 2008 16:02:36 +0200 Subject: [mono-vb] extract resources in aspx In-Reply-To: <17787580.post@talk.nabble.com> References: <17787580.post@talk.nabble.com> Message-ID: <004201c8cfb9$a225e130$e671a390$@com> Hi, This is not a vb-specific issue (I made a simple sample in C# and it still fails), so you'll be better off asking in mono-list instead of mono-vb. I have no clue as to what the problem is. Rolf -----Original Message----- From: mono-vb-bounces at lists.ximian.com [mailto:mono-vb-bounces at lists.ximian.com] On Behalf Of davideveloper Sent: mi?rcoles, 11 de junio de 2008 23:23 To: mono-vb at lists.ximian.com Subject: [mono-vb] extract resources in aspx HI In MS.NET I can extract a resource string from the global resources using this statement '<%$ Resources:TestGlobal,ApplicationTitle %>' (an example is below, extracts the page title from global resources) but it seems not to work in Mono, does anyone know the correct syntax I must use for this to work in mono ? <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Test.aspx.vb" Inherits="testclass" Title='<%$ Resources:TestGlobal,ApplicationTitle %>' %> -- View this message in context: http://www.nabble.com/extract-resources-in-aspx-tp17787580p17787580.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 No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.3.0/1498 - Release Date: 11/06/2008 19:13 From jfreak53 at hotmail.com Sat Jun 21 11:32:11 2008 From: jfreak53 at hotmail.com (jfreak53) Date: Sat, 21 Jun 2008 08:32:11 -0700 (PDT) Subject: [mono-vb] A .net vb program is crashing without vb Message-ID: <18045589.post@talk.nabble.com> I am running ubuntu 8.04 hardy edition on an amd 64 laptop. I'm trying to run a program that was made for the school that I work at to enter grades, this program is run from the server. I can find the file alright and it starts running but these are the errors that I get, then it exits and does nothing. This is running the program with wine: preloader: Warning: failed to reserve range 00000000-60000000 preloader: Warning: failed to reserve range 00000000-60000000 err:dosmem:setup_dos_mem Cannot use first megabyte for DOS address space, please report preloader: Warning: failed to reserve range 00000000-60000000 err:dosmem:setup_dos_mem Cannot use first megabyte for DOS address space, please report preloader: Warning: failed to reserve range 00000000-60000000 err:dosmem:setup_dos_mem Cannot use first megabyte for DOS address space, please report err:dosmem:setup_dos_mem Cannot use first megabyte for DOS address space, please report preloader: Warning: failed to reserve range 00000000-60000000 err:dosmem:setup_dos_mem Cannot use first megabyte for DOS address space, please report preloader: Warning: failed to reserve range 00000000-60000000 err:dosmem:setup_dos_mem Cannot use first megabyte for DOS address space, please report fixme:win:EnumDisplayDevicesW ((null),0,0x7f32e310,0x00000000), stub! fixme:win:SetLayeredWindowAttributes ((nil),0x00000000,255,2): stub! fixme:win:GetLayeredWindowAttributes ((nil),0x7f32f930,0x7f32f913,0x7f32f914): stub! fixme:win:SetLayeredWindowAttributes (0x1002e,0x00000000,0,2): stub! ** (MSSchool.exe:24): WARNING **: string marshalling conversion 34 not implemented Unhandled Exception: System.NotImplementedException: string marshalling conversion 34 not implemented at MSSchool.frmLogin.frmLogin_Load (object,System.EventArgs) <0x00175> at System.Windows.Forms.Form.OnLoad (System.EventArgs) <0x00059> at System.Windows.Forms.Form.OnLoadInternal (System.EventArgs) <0x0005d> at System.Windows.Forms.Form.OnCreateControl () <0x00044> at System.Windows.Forms.Control.CreateControl () <0x000fb> at System.Windows.Forms.Control.SetVisibleCore (bool) <0x00063> at System.Windows.Forms.Form.SetVisibleCore (bool) <0x00148> at System.Windows.Forms.Control.set_Visible (bool) <0x00023> at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control.set_Visible (bool) <0x0004b> at System.Windows.Forms.Application.RunLoop (bool,System.Windows.Forms.ApplicationContext) <0x001bc> at System.Windows.Forms.Form.ShowDialog (System.Windows.Forms.IWin32Window) <0x002a1> at System.Windows.Forms.Form.ShowDialog () <0x0000c> at (wrapper remoting-invoke-with-check) System.Windows.Forms.Form.ShowDialog () <0x00036> at MSSchool.frmMain.frmMain_Activated (object,System.EventArgs) <0x00059> at System.Windows.Forms.Form.OnActivated (System.EventArgs) <0x00050> at System.Windows.Forms.Form.set_IsActive (bool) <0x00053> at System.Windows.Forms.Form.WmActivate (System.Windows.Forms.Message&) <0x000ae> at System.Windows.Forms.Form.WndProc (System.Windows.Forms.Message&) <0x00115> at ControlWindowTarget.OnMessage (System.Windows.Forms.Message&) <0x00014> at ControlNativeWindow.WndProc (System.Windows.Forms.Message&) <0x00022> at System.Windows.Forms.NativeWindow.WndProc (intptr,System.Windows.Forms.Msg,intptr,intptr) <0x0015c> at System.Windows.Forms.XplatUIWin32.InternalWndProc (intptr,System.Windows.Forms.Msg,intptr,intptr) <0x00046> at (wrapper native-to-managed) System.Windows.Forms.XplatUIWin32.InternalWndProc (intptr,System.Windows.Forms.Msg,intptr,intptr) <0x00065> at (wrapper managed-to-native) System.Windows.Forms.XplatUIWin32.Win32ShowWindow (intptr,System.Windows.Forms.XplatUIWin32/WindowPlacementFlags) <0x00004> at System.Windows.Forms.XplatUIWin32.SetVisible (intptr,bool,bool) <0x001ce> at System.Windows.Forms.XplatUI.SetVisible (intptr,bool,bool) <0x0001f> at System.Windows.Forms.Control.SetVisibleCore (bool) <0x0012f> at System.Windows.Forms.Form.SetVisibleCore (bool) <0x00148> at System.Windows.Forms.Control.set_Visible (bool) <0x00023> at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control.set_Visible (bool) <0x0004b> at System.Windows.Forms.Application.RunLoop (bool,System.Windows.Forms.ApplicationContext) <0x001bc> at System.Windows.Forms.Application.Run (System.Windows.Forms.ApplicationContext) <0x0004c> at System.Windows.Forms.Application.Run (System.Windows.Forms.Form) <0x00025> at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun () <0x00040> at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run (string[]) <0x0000b> at MSSchool.My.MyApplication.Main (string[]) <0x00041> and this is the error I get when I run it straight with mono: ** (msschool.exe:6431): WARNING **: The following assembly referenced from /mnt/msschool.exe could not be loaded: Assembly: Microsoft.VisualBasic (assemblyref_index=1) Version: 8.0.0.0 Public Key: b03f5f7f11d50a3a The assembly was not found in the Global Assembly Cache, a path listed in the MONO_PATH environment variable, or in the location of the executing assembly (/mnt/). ** (msschool.exe:6431): WARNING **: Could not load file or assembly 'Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The entry point method could not be loaded -- View this message in context: http://www.nabble.com/A-.net-vb-program-is-crashing-without-vb-tp18045589p18045589.html Sent from the Mono - VB mailing list archive at Nabble.com. From andyhume32 at yahoo.co.uk Sun Jun 22 15:12:57 2008 From: andyhume32 at yahoo.co.uk (Andy Hume) Date: Sun, 22 Jun 2008 12:12:57 -0700 (PDT) Subject: [mono-vb] A .net vb program is crashing without vb In-Reply-To: <18045589.post@talk.nabble.com> References: <18045589.post@talk.nabble.com> Message-ID: <18057961.post@talk.nabble.com> jfreak53 wrote: > > I am running ubuntu 8.04 hardy edition on an amd 64 laptop. I'm trying to > run a program that was made for the school that I work at to enter grades, > this program is run from the server. I can find the file alright and it > starts running but these are the errors that I get, then it exits and does > nothing. > > This is running the program with wine: > > preloader: Warning: failed to reserve range 00000000-60000000 > preloader: Warning: failed to reserve range 00000000-60000000 > err:dosmem:setup_dos_mem Cannot use first megabyte for DOS address space, > please report > preloader: Warning: failed to reserve range 00000000-60000000 > err:dosmem:setup_dos_mem Cannot use first megabyte for DOS address space, > please report > preloader: Warning: failed to reserve range 00000000-60000000 > err:dosmem:setup_dos_mem Cannot use first megabyte for DOS address space, > please report > err:dosmem:setup_dos_mem Cannot use first megabyte for DOS address space, > please report > preloader: Warning: failed to reserve range 00000000-60000000 > err:dosmem:setup_dos_mem Cannot use first megabyte for DOS address space, > please report > preloader: Warning: failed to reserve range 00000000-60000000 > err:dosmem:setup_dos_mem Cannot use first megabyte for DOS address space, > please report > fixme:win:EnumDisplayDevicesW ((null),0,0x7f32e310,0x00000000), stub! > fixme:win:SetLayeredWindowAttributes ((nil),0x00000000,255,2): stub! > fixme:win:GetLayeredWindowAttributes > ((nil),0x7f32f930,0x7f32f913,0x7f32f914): stub! > fixme:win:SetLayeredWindowAttributes (0x1002e,0x00000000,0,2): stub! > > ** (MSSchool.exe:24): WARNING **: string marshalling conversion 34 not > implemented > > Unhandled Exception: System.NotImplementedException: string marshalling > conversion 34 not implemented > at MSSchool.frmLogin.frmLogin_Load (object,System.EventArgs) <0x00175> > at System.Windows.Forms.Form.OnLoad (System.EventArgs) <0x00059> > [...] > This is a problem with a P/Invoke call, the app is using a form of P/Invoke marshalling that Mono apparently does not support -- don't think there's been a change since http://lists.ximian.com/pipermail/mono-devel-list/2008-April/027391.html If you have access to the sources and recompile then its likely easily fixed... (I presume that the earlier error messages are from wine). jfreak53 wrote: > > and this is the error I get when I run it straight with mono: > > ** (msschool.exe:6431): WARNING **: The following assembly referenced from > /mnt/msschool.exe could not be loaded: > Assembly: Microsoft.VisualBasic (assemblyref_index=1) > Version: 8.0.0.0 > Public Key: b03f5f7f11d50a3a > The assembly was not found in the Global Assembly Cache, a path listed in > the MONO_PATH environment variable, or in the location of the executing > assembly (/mnt/). > > > ** (msschool.exe:6431): WARNING **: Could not load file or assembly > 'Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral, > PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. > The entry point method could not be loaded > So, that means you don't have a mono-basic package installed. I don't know about package support for ubuntu. The other thread just now is searching for debian support too... However if the application is P/Invoke-ing to native Windows API calls then its perhaps not likely to work on Mono on Linux anyway. Download the Moma tool and see what it reports, http://www.mono-project.com/Moma Andy -- View this message in context: http://www.nabble.com/A-.net-vb-program-is-crashing-without-vb-tp18045589p18057961.html Sent from the Mono - VB mailing list archive at Nabble.com. From andyhume32 at yahoo.co.uk Sun Jun 22 15:36:31 2008 From: andyhume32 at yahoo.co.uk (Andy Hume) Date: Sun, 22 Jun 2008 12:36:31 -0700 (PDT) Subject: [mono-vb] A .net vb program is crashing without vb In-Reply-To: <18057961.post@talk.nabble.com> References: <18045589.post@talk.nabble.com> <18057961.post@talk.nabble.com> Message-ID: <18058245.post@talk.nabble.com> Andy Hume wrote: > > [...] If you have access to the sources and recompile then its likely > easily fixed... > That's the application's source code. I don't know how hard it would be to implement in Mono. Andy -- View this message in context: http://www.nabble.com/A-.net-vb-program-is-crashing-without-vb-tp18045589p18058245.html Sent from the Mono - VB mailing list archive at Nabble.com. From cumaron at web.de Fri Jun 27 08:05:01 2008 From: cumaron at web.de (cumaron) Date: Fri, 27 Jun 2008 05:05:01 -0700 (PDT) Subject: [mono-vb] First steps with Mono -VB Message-ID: <18153729.post@talk.nabble.com> Hello, I have obtained and installed Mono 1.9.1_2 setup from the download page. What do I need to do to write a simple Visual Basic program, e.g. print "Hello World" ? The page http://www.mono-project.com/VisualBasic.NET_support is not very helpful. I am not even sure, if VB is included, I cannot find any example files, the files in the samples directory look more like C. I would be grateful, if you coud point me to any useful documentation. Many thanks cumaron -- View this message in context: http://www.nabble.com/First-steps-with-Mono--VB-tp18153729p18153729.html Sent from the Mono - VB mailing list archive at Nabble.com. From rolflists at ya.com Sat Jun 28 14:04:37 2008 From: rolflists at ya.com (Rolf Bjarne Kvinge) Date: Sat, 28 Jun 2008 20:04:37 +0200 Subject: [mono-vb] First steps with Mono -VB In-Reply-To: <18153729.post@talk.nabble.com> References: <18153729.post@talk.nabble.com> Message-ID: <06d201c8d949$6ea70a20$4bf51e60$@com> Hi, Are you on Windows or Linux? You need to have mono-basic installed, it should be included in the Windows installer, for Linux you'll have to grab the package separately. To check if you can compile VB programs execute 'vbnc' (the VB compiler) in the mono command prompt. Here is a simple hello world app, put it in a file (helloworld.vb), compile by executing 'vbnc helloworld.vb' and then execute the program with 'mono helloworld.exe': Class HelloWorld Shared Sub Main System.Console.WriteLine ("Hello world") End Sub End Class Rolf > -----Original Message----- > From: mono-vb-bounces at lists.ximian.com [mailto:mono-vb- > bounces at lists.ximian.com] On Behalf Of cumaron > Sent: viernes, 27 de junio de 2008 14:05 > To: mono-vb at lists.ximian.com > Subject: [mono-vb] First steps with Mono -VB > > > Hello, > > I have obtained and installed Mono 1.9.1_2 setup from the download > page. > What do I need to do to write a simple Visual Basic program, e.g. print > "Hello World" ? > > The page > > http://www.mono-project.com/VisualBasic.NET_support > > is not very helpful. > I am not even sure, if VB is included, I cannot find any example files, > the > files in the samples directory look more like C. > > I would be grateful, if you coud point me to any useful documentation. > > Many thanks > cumaron > -- > View this message in context: http://www.nabble.com/First-steps-with- > Mono--VB-tp18153729p18153729.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 > No virus found in this incoming message. > Checked by AVG. > Version: 8.0.101 / Virus Database: 270.4.2/1523 - Release Date: > 28/06/2008 7:00