AW: [mono-vb] Compilation error in VB @ ASP.NET

Jochen Wezel jwezel@compumaster.de
Mon, 13 Sep 2004 09:38:17 +0200


This is a multi-part message in MIME format.

------_=_NextPart_001_01C49964.A2CC95B4
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi Rafael,

Here it is! Hope, it helps :)

Thanks!
-Jochen


-----Urspr=FCngliche Nachricht-----
Von: Rafael Teixeira [mailto:monoman@gmail.com]=20
Gesendet: Sonntag, 12. September 2004 16:19
An: Jochen Wezel
Cc: mono-vb@lists.ximian.com
Betreff: Re: [mono-vb] Compilation error in VB @ ASP.NET

Please Jochen, could you attach the temporary vb file? But it looks =
related to overloading... But it may be the CodeDom generated code that =
has some real error, so please attach the vb file, and the ascx file in =
the bugzilla you should open (put it on the compiler for now).

Thanks,

----- Original Message -----
From: Jochen Wezel <jwezel@compumaster.de>
Date: Sat, 11 Sep 2004 17:18:13 +0200
Subject: [mono-vb] Compilation error in VB @ ASP.NET
To: mono-vb@lists.ximian.com

=20

Hi all!=20

Where does this belongs to?=20
Improper overloading mechanisms or some property related stuff in mbas?=20
=20

This is the message I get from XSP webserver in page:=20
Server Error in '/' Application
Compilation Error
Description: Error compiling a resource required to service this =
request. Review your source file and modify it to fix this error.

Error message: /tmp/73884.vb(66,20) : error BC1501: No overload for =
method `Request' takes `1' arguments File name: =
/mono-dev/wwwroot/sysdata/includes/loginarea.ascx
Source File: /tmp/73884.vb=20
=20

This is the message I get from XSP webserver at console:=20
---=20
Unhandled Exception: System.Exception: Error resolving Property Access
expression
Mono.MonoBASIC.PropertyExpr=20
in <0x00a3b> Mono.MonoBASIC.Invocation:DoResolve =
(Mono.MonoBASIC.EmitContext)=20
in <0x0018f> Mono.MonoBASIC.Expression:Resolve
(Mono.MonoBASIC.EmitContext,Mono.MonoBASIC.ResolveFlags)
in <0x00013> Mono.MonoBASIC.Expression:Resolve =
(Mono.MonoBASIC.EmitContext)=20
in <0x0001f> Mono.MonoBASIC.Binary:DoResolve =
(Mono.MonoBASIC.EmitContext)=20
in <0x0018f> Mono.MonoBASIC.Expression:Resolve
(Mono.MonoBASIC.EmitContext,Mono.MonoBASIC.ResolveFlags)
in <0x00013> Mono.MonoBASIC.Expression:Resolve =
(Mono.MonoBASIC.EmitContext)=20
in <0x00014> Mono.MonoBASIC.Statement:ResolveBoolean
(Mono.MonoBASIC.EmitContext,Mono.MonoBASIC.Expression,Mono.MonoBASIC.Loca=
tion)

in <0x0001c> Mono.MonoBASIC.If:Resolve (Mono.MonoBASIC.EmitContext)=20
in <0x001b0> Mono.MonoBASIC.Block:Resolve (Mono.MonoBASIC.EmitContext)=20
in <0x000d1> Mono.MonoBASIC.EmitContext:EmitTopBlock
(Mono.MonoBASIC.Block,string,Mono.MonoBASIC.InternalParameters,Mono.MonoB=
ASIC.Location)

in <0x0054d> Mono.MonoBASIC.MethodData:Emit
(Mono.MonoBASIC.TypeContainer,Mono.MonoBASIC.Block,object)
in <0x00035> Mono.MonoBASIC.Method:Emit (Mono.MonoBASIC.TypeContainer)=20
in <0x0028f> Mono.MonoBASIC.TypeContainer:Emit ()=20
in <0x006bc> Mono.MonoBASIC.RootContext:EmitCode ()=20
in <0x0003f> Mono.Languages.Driver:GenerateAssembly ()=20
in <0x00050> Mono.Languages.Driver:CompileAll ()=20
in <0x00092> Mono.Languages.Driver:MainDriver (string[])=20
in <0x00038> Mono.Languages.Driver:Main (string[])=20
---=20

Thanks=20
-Jochen=20



--=20
Rafael "Monoman" Teixeira
---------------------------------------
Cognition is not a representation of an objectively existing world
but is a bringing forth of a world in the process of living.
-- Fritjof Capra, citing=20
   Humberto Maturana and Francisco Varella's "Santiago Theory of =
Cognition"



------_=_NextPart_001_01C49964.A2CC95B4
Content-Type: application/octet-stream;
	name="73884.vb"
Content-Transfer-Encoding: base64
Content-Description: 73884.vb
Content-Disposition: attachment;
	filename="73884.vb"

JyAtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t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