[mono-vb] Cannot run VB.NET aspx application created with ASP.NET Web Matrix

JE M. jmbltx1 at hotmail.com
Fri Jun 22 11:43:27 EDT 2007


Hi Rolf, thanks for you help, I ran XSP2, went to my browser, typed 
http://localhost:8080/welcome.aspx and got a similar message:
xsp2 --root /home/jmartinez/mono/webappex
xsp2
Listening on port: 8080 (non-secure)
Listening on address: 0.0.0.0
Root directory: /home/jmartinez/mono/webappex
Hit Return to stop the server.
Cannot open assembly /usr/local/lib/mono/1.0/mbas.exe.

My question is, by running the XSP2 server, the application I created in 
VB.NET with Web Matrix and copied to /home/jmartinez/mono/webappex should 
work, or I have to recompile it with vbnc? When I recompile (# vbnc 
welcome.aspx) I get the following message:

Visual Basic.Net Compiler version 0.0.0.5058
Copyright (C) 2004-2007 Rolf Bjarne Kvinge. All rights reserved.

/home/jmartinez/mono/webappex/welcome.aspx (1,3) : Error VBNC30037: Symbol 
is not valid.
/home/jmartinez/mono/webappex/welcome.aspx (1,3) : Error VBNC30037: Symbol 
is not valid.
/home/jmartinez/mono/webappex/welcome.aspx (1,19) : Warning VBNC90019: 
Expected '>'.
Error recovery not implemented yet.
Unexpected error: An error message should have been shown: 'Hanging 
attributes.'
  at vbnc.Helper.AddError (System.String Message) [0x00000]
  at vbnc.Parser.ParseAssemblyMembers (vbnc.AssemblyDeclaration Parent, 
System.String RootNamespace, vbnc.MemberDeclarations result) [0x00000]
  at vbnc.Parser.ParseAssemblyDeclaration (System.String RootNamespace) 
[0x00000]
  at vbnc.Parser.Parse (System.String RootNamespace) [0x00000]
  at vbnc.Compiler.Compile_Parse () [0x00000]
  at vbnc.Compiler.Compile () [0x00000]
Compilation took 00:00:00.9257060

>From: "Rolf Bjarne Kvinge" <rolflists at ya.com>
>To: "'JE M.'" <jmbltx1 at hotmail.com>,<mono-vb at lists.ximian.com>
>Subject: RE: [mono-vb] Cannot run VB.NET aspx application created with 
>ASP.NET	Web Matrix
>Date: Fri, 22 Jun 2007 09:34:58 +0200
>
>
>
> > -----Original Message-----
> > From: mono-vb-bounces at lists.ximian.com [mailto:mono-vb-
> > bounces at lists.ximian.com] On Behalf Of JE M.
> > Sent: viernes, 22 de junio de 2007 0:50
> > To: mono-vb at lists.ximian.com
> > Subject: [mono-vb] Cannot run VB.NET aspx application created with
> > ASP.NET Web Matrix
> >
> > Hello all, I created a simple aspx application that displays a welcome
> > title
> > on my Windows machine using ASP.NET Web Matrix. Then I copied the aspx
> > application to a Linux SUSE Enterprise 10 OS . I have mono JIT compiler
> > version 1.2.4 installed, and XSP web server up and running. I also have
> > installed the vbnc compiler ver. 0.0.0.5058. When I go to my browser
> > and
> > type http://localhost:8080/welcome.aspx I get the following messages:
> >
> > File not found /tmp/root-temp-aspnet-0/a0201acd/56321.dll
> > Description: Error processing request.
> >
> > Error Message: HTTP 404. File not found
> > /tmp/root-temp-aspnet-0/a0201acd/56321.dll
> >
> > Stack Trace:
> >
> > System.IO.FileNotFoundException: /tmp/root-temp-aspnet-
> > 0/a0201acd/56321.dll
> > : /tmp/root-temp-aspnet-0/a0201acd/56321.dll
> > in <0x00000> <unknown method>
> > in (wrapper managed-to-native) System.Reflection.Assembly:LoadFrom
> > (string,bool)
> > in <0x0000c> System.Reflection.Assembly:LoadFrom (System.String
> > assemblyFile)
> > in <0x00388> Microsoft.VisualBasic.VBCodeCompiler:CompileFromFileBatch
> > (System.CodeDom.Compiler.CompilerParameters options, System.String[]
> > fileNames)
> > in <0x00022>
> > Microsoft.VisualBasic.VBCodeCompiler:CompileAssemblyFromFileBatch
> > (System.CodeDom.Compiler.CompilerParameters options, System.String[]
> > fileNames)
> > in <0x002f5> Microsoft.VisualBasic.VBCodeCompiler:CompileFromDomBatch
> > (System.CodeDom.Compiler.CompilerParameters options,
> > System.CodeDom.CodeCompileUnit[] ea)
> > in <0x00022>
> > Microsoft.VisualBasic.VBCodeCompiler:CompileAssemblyFromDomBatch
> > (System.CodeDom.Compiler.CompilerParameters options,
> > System.CodeDom.CodeCompileUnit[] ea)
> > in <0x0003c>
> > Microsoft.VisualBasic.VBCodeCompiler:CompileAssemblyFromDom
> > (System.CodeDom.Compiler.CompilerParameters options,
> > System.CodeDom.CodeCompileUnit e)
> > in <0x00121> System.Web.Compilation.CachingCompiler:Compile
> > (System.Web.Compilation.BaseCompiler compiler)
> > in <0x00259> System.Web.Compilation.BaseCompiler:GetCompiledType ()
> > in <0x000fa> System.Web.Compilation.AspGenerator:GetCompiledType ()
> > in <0x00029> System.Web.UI.PageParser:CompileIntoType ()
> > in <0x00011> System.Web.UI.TemplateControlParser:GetCompiledInstance ()
> > in <0x00035> System.Web.UI.PageParser:GetCompiledPageInstance
> > (System.String
> > virtualPath, System.String inputFile, System.Web.HttpContext context)
> > in <0x00010> System.Web.UI.PageHandlerFactory:GetHandler
> > (System.Web.HttpContext context, System.String requestType,
> > System.String
> > url, System.String path)
> > in <0x001e3> System.Web.HttpApplication:GetHandler
> > (System.Web.HttpContext
> > context)
> > in <0x00894> System.Web.HttpApplication+<Pipeline>__1:MoveNext ()
> > -----------------------------------------------------------------------
> > ---------------------------------------------------------
> > The XSP sends the following message at the end:
> > # xsp --root /home/jm/mono/webappex
>
>You need to use xsp2, not xsp - vbnc can only generate v2.0 assemblies and
>xsp can't load them, you'll need to use xsp2.
>
>Rolf
>

_________________________________________________________________
Like puzzles? Play free games & earn great prizes. Play Clink now. 
http://club.live.com/clink.aspx?icid=clink_hotmailtextlink2



More information about the Mono-vb mailing list