AW: [mono-vb] ASP.NET compilation of VB.NET

Jochen Wezel
Thu, 12 Aug 2004 15:45:21 +0200

Hi Anirban!

You're right:  AutoHandler property is a readwrite property (should be).

Example code of a C# page compilation:
Line 38:         protected override int AutoHandlers {
Line 39:             get {
Line 40:                 return ASP.errorc_aspx.__autoHandlers;
Line 41:             }
Line 42:             set {
Line 43:                 ASP.errorc_aspx.__autoHandlers =3D value;
Line 44:             }
Line 45:         }=20

So, MBAS is currently not able to handle that property correctly.


-----Urspr=FCngliche Nachricht-----
Von: =
[] Im Auftrag von B Anirban
Gesendet: Donnerstag, 12. August 2004 13:03
An: Jochen Wezel;
Betreff: Re: [mono-vb] ASP.NET compilation of VB.NET

Hey Jochen,
Do you mean to say, if we comment out those lines the program is =
At least in my machine it's not.
The problem I feel is in MBAS, not in VBCodeGenerator or VbCodeCompiler, =
neither in ASP.
I am in process of fixing few miscellaneous bugs now a days. Already =
fixed few trivial and critical defects which were appearing in this =
program. Hope at the end this exercise program will start working.
This will take next couple of days to get over.
We are close, very close.

>>> "Jochen Wezel" <> 12-Aug-04 4:06:34 PM >>>

I've just tried to compile a sample page in VB.NET by the ASP.NET =

I only had to comment some lines (here in bold letters) to work around =
the current compile errors of VB.NET in Mono 1.0.1.

I'm currently not able to download current CVS, that's why I post it =
here and hope, somebody takes an eye on. Maybe, it's already fixed, =

[root@lwezel tmp]# cat /tmp/88865.vb
' =
'  <autogenerated>
'      This code was generated by a tool.
'      Mono Runtime Version: 1.1.4322.573
'      Changes to this file may cause incorrect behavior and will be =
lost if
'      the code is regenerated.
'  </autogenerated>
' =

Option Explicit Off
Option Strict On

Imports Microsoft.VisualBasic
Imports System
Imports System.Collections
Imports System.Collections.Specialized
Imports System.Configuration
Imports System.Text
Imports System.Text.RegularExpressions
Imports System.Web
Imports System.Web.Caching
Imports System.Web.Security
Imports System.Web.SessionState
Imports System.Web.UI
Imports System.Web.UI.WebControls
Imports System.Web.UI.HtmlControls

Namespace ASP
    Public Class default_aspx
        Inherits System.Web.UI.Page
        Implements System.Web.SessionState.IRequiresSessionState

        Private Shared __intialized As Boolean =3D False

        Private Shared __autoHandlers As Integer

        Public Sub New()
            If ((ASP.default_aspx.__intialized =3D False)) Then
                ASP.default_aspx.__intialized =3D True
            End If
        End Sub

'        Protected Overrides Property AutoHandlers As Integer
'            Get
'                Return ASP.default_aspx.__autoHandlers
'            End Get
'            Set (Value As Integer)
'                ASP.default_aspx.__autoHandlers =3D Value
'            End Set
'        End Property
'/tmp/88865.vb(52,0) error BC30284: `ASP.default_aspx.AutoHandlers' no =
suitable properties found to override ' "Readonly" property would work; =
now the question is: is the bug in VBCodeGenerator or at Gonzalo's side?

        Protected ReadOnly Property ApplicationInstance As =
                Return CType(Me.Context.ApplicationInstance, =
            End Get
        End Property

        Public Overrides ReadOnly Property TemplateSourceDirectory As =
                Return "/"
            End Get
        End Property

        Private Sub __BuildControlTree(__ctrl As System.Web.UI.Control)
            Dim __parser As System.Web.UI.IParserAccessor =3D =
CType(__ctrl, System.Web.UI.IParserAccessor)
            __parser.AddParsedSubObject(New =
10)&"<body>"&Microsoft.VisualBasic.Strings.ChrW(10)&"Hello world of =
        End Sub

        Protected Overrides Sub FrameworkInitialize()
          '  Me.TraceModeValue =3D System.Web.TraceMode.SortByTime
		'/tmp/88865.vb(72,0) error BC0029: Cannot convert implicitly from =
'integer' to 'System.Web.TraceMode'
		'Compilation failed: 1 Error(s), 0 warnings
        End Sub

        Public Overrides Function GetTypeHashCode() As Integer
            Return 1508043152
        End Function
    End Class
    'Why is the indentation not working correctly here? --> see in =
    End Namespace

If you want to build, you can use
mbas /tmp/88865.vb /target:library /r:System.Web


CompuMaster GmbH
Agentur f=FCr moderne Kommunikation
Jochen Wezel, Multimedia-Programmierung
Rhein-Mosel-Stra=DFe 69, 56281 Emmelshausen, GERMANY
Fon: +49 6747 95084-12 / Fax: +49 6747 95084-50 = eMail:
+++ Mitglied im DEUTSCHEN MULTIMEDIA VERBAND d m m v, =

+++ +++

Unsere aktuellen AGBs befinden sich auf unserer Website im Bereich =

Diese eMail enth=E4lt vertrauliche und/oder rechtlich gesch=FCtzte =
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrt=FCmlich =
erhalten haben, informieren Sie bitte sofort den Absender und vernichten =
Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe =
dieser Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If =
you are not the intended recipient (or have received this e-mail in =
error) please notify the sender immediately and destroy this e-mail.
Any unauthorized copying, disclosure or distribution of the material in =
this e-mail is strictly forbidden.

Mono-vb mailing list