[mono-vb] ASP.NET compilation of VB.NET
B Anirban
banirban@novell.com
Thu, 12 Aug 2004 05:03:25 -0600
Hey Jochen,
Do you mean to say, if we comment out those lines the program is compiling.=
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.
Thanks.
Anirban.
>>> "Jochen Wezel" <jwezel@compumaster.de> 12-Aug-04 4:06:34 PM >>>
Hi!
I've just tried to compile a sample page in VB.NET by the ASP.NET engine.
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, too...
[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 System.Web.HttpA=
pplication
Get
Return CType(Me.Context.ApplicationInstance, System.Web.Htt=
pApplication)
End Get
End Property
Public Overrides ReadOnly Property TemplateSourceDirectory As =
String
Get
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 System.Web.UI.LiteralControl("<=
html>"&Microsoft.VisualBasic.Strings.ChrW(10)&"<body>"&Microsoft.VisualBasi=
c.Strings.ChrW(10)&"Hello world of C#!"&Microsoft.VisualBasic.Strings.ChrW(=
10)&"</body>"&Microsoft.VisualBasic.Strings.ChrW(10)&"</html>"&Microsoft.Vi=
sualBasic.Strings.ChrW(10)))
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
Me.Request.ValidateInput()
Me.__BuildControlTree(Me)
End Sub
Public Overrides Function GetTypeHashCode() As Integer
Return 1508043152
End Function
End Class
'Why is the indentation not working correctly here? --> see in =
mcs/class/System/Micrisoft.VisualBasic/VBCodeGenerator.cs
'Indent=3D0
End Namespace
'Indent=3D-1
If you want to build, you can use
mbas /tmp/88865.vb /target:library /r:System.Web
Regards
Jochen
***************************************************************************=
*
***************************************************************************=
*
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
http://www.compumaster.de eMail: jwezel@compumaster.de=20
+++ Mitglied im DEUTSCHEN MULTIMEDIA VERBAND d m m v, http://www.dmmv.de =
+++
***************************************************************************=
*
Unsere aktuellen AGBs befinden sich auf unserer Website im Bereich
"Rechtliches"
***************************************************************************=
*
Diese eMail enth=E4lt vertrauliche und/oder rechtlich gesch=FCtzte =
Informationen.
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.
***************************************************************************=
*
***************************************************************************=
*