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