List Info

Thread: XSP-ASP.NET-VB.NET




XSP-ASP.NET-VB.NET
user name
2006-11-04 09:21:14
.aspx files are compiled anyway but ff you have no inline
code in your .aspx 
files then you can use any language you want because only
rendering code is 
generated.

The default ASP.NET language for Mono is C#, so if you
specify no langauge 
then C# is used.

This means that you override this default setting either in
Web.config or in 
the .aspx files (and probably both):
<compilation defaultLanguage="vb" ... />
<% Page Language="VB" ... %>

You should replace VB with C# to make .aspx files compile.

Kornél

----- Original Message ----- 
From: "Alfredo Torres" <alftorogmail.com>
To: "Kornél Pál" <kornelpalgmail.com>
Sent: Saturday, November 04, 2006 4:12 AM
Subject: Re: [mono-vb] XSP-ASP.NET-VB.NET


Kornel,

Thanks for the info, its becoming a bit more clearer.  So if
I have a
VB.NETaspx file and the DLL that goes with it, how do I make
xsp look
 the
DLL
instead of attempting to compile the code?  I see that the
first line of the
aspx file indicates the name of .vb file that contains the
code-behind, if
delete this line no compilation is attempted but code-behind
logic in the
DLL never get used.

Thanks,
Alfredo

On 11/3/06, Kornél Pál <kornelpalgmail.com> wrote:
>
> Hi,
>
> Mono currently has no VB compiler. (vbnc is not part of
the release
> because
> it's not able to bootstrap on Mono)
>
> Mono has a VB runtime however, so you are able to use
binaries compiled
> using vbc on Windows.
>
> You should use C# for inline code in ASP.NET. And
compile code to a DLL
> that
> you don't want to port to C#.
>
> Kornél
>
> ----- Original Message -----
> From: "Alfredo Torres" <alftorogmail.com>
> To: <mono-vblists.ximian.com>
> Sent: Saturday, November 04, 2006 2:04 AM
> Subject: [mono-vb] XSP-ASP.NET-VB.NET
>
>
> > Hello Everyone,
> >
> > I have a question whether the new VB Framework
(1.1.17/1.1.18) is
> capable
> > of
> > hosting ASP.NET applications with xsp.  I've tried
running a simple
> > ASP.NETapp on Suse Linux
> > 10.1 that was created in VisualBasic.NET 2003, but
it fails.  It appears
> > that there's an attempt to compile code (see
below).  There was a
> similar
> > question back in May 2006 about this issue (
> > http://lists.ximian.com/pipermail/mono-list/2006
-May/031608.html) that
> > seem
> > to go  unanswered.  A user had an ASP.NET written
in VB.NET that worked
> > with
> > Mono 1.1.8 and stopped working with 1.1.15.  The
problem appears similar
> > to
> > mine.
> >
> > Any insight or hints on this topic would be
extremely appreicated!
> >
> > Thanks,
> > Alfredo <
> >
> > System.InvalidOperationException: Process has not
been started.
> >  at System.Diagnostics.Process.get_ExitCode ()
[0x00000]
> >   at (wrapper remoting-invoke-with-check)
> > System.Diagnostics.Process:get_ExitCode ()
> >   at
Microsoft.VisualBasic.VBCodeCompiler.CompileFromFileBatch
> > (System.CodeDom.Compiler.CompilerParameters
options, System.String[]
> > fileNames) [0x00000]
> >   at
Microsoft.VisualBasic.VBCodeCompiler.CompileAssemblyFromFile
Batch
> > (System.CodeDom.Compiler.CompilerParameters
options, System.String[]
> > fileNames) [0x00000]
> >   at
Microsoft.VisualBasic.VBCodeCompiler.CompileFromDomBatch
> > (System.CodeDom.Compiler.CompilerParameters
options,
> > System.CodeDom.CodeCompileUnit[] ea) [0x00000]
> >   at
Microsoft.VisualBasic.VBCodeCompiler.CompileAssemblyFromDomB
atch
> > (System.CodeDom.Compiler.CompilerParameters
options,
> > System.CodeDom.CodeCompileUnit[] ea) [0x00000]
> >   at
Microsoft.VisualBasic.VBCodeCompiler.CompileAssemblyFromDom
> > (System.CodeDom.Compiler.CompilerParameters
options,
> > System.CodeDom.CodeCompileUnit e) [0x00000]
> >  at System.Web.Compilation.CachingCompiler.Compile
> > (System.Web.Compilation.BaseCompiler compiler)
[0x00000]
> >  at
System.Web.Compilation.BaseCompiler.GetCompiledType ()
[0x00000]
> >  at
System.Web.Compilation.AspGenerator.GetCompiledType ()
[0x00000]
> >   at
System.Web.UI.ApplicationFileParser.GetCompiledApplicationTy
pe
> > (System.String inputFile, System.Web.HttpContext
context) [0x00000]
> >  at System.Web.HttpApplicationFactory.InitType
> > (System.Web.HttpContext context) [0x00000]
> >  at
System.Web.HttpApplicationFactory.GetApplication
> > (System.Web.HttpContext context) [0x00000]
> >  at System.Web.HttpRuntime.RealProcessRequest
(System.Object o)
> [0x00000]
> >
>
>
>
>
------------------------------------------------------------
--------------------
>
>
> > _______________________________________________
> > Mono-vb mailing list
> > Mono-vblists.ximian.com
> > http
://lists.ximian.com/mailman/listinfo/mono-vb
> >
>
>

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

about | contact  Other archives ( Real Estate discussion Medical topics )