[Mono-bugs] [Bug 78451][Maj] Changed - Trivial VB.NET WebForm runs on Mono 1.1.8, fails on 1.1.15. *No VB.NET web page will run at all*

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu May 18 20:26:57 EDT 2006


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by kevin-f at linkprior.com.

http://bugzilla.ximian.com/show_bug.cgi?id=78451

--- shadow/78451	2006-05-18 19:31:16.000000000 -0400
+++ shadow/78451.tmp.10515	2006-05-18 20:26:57.000000000 -0400
@@ -91,6 +91,199 @@
 Additional Information:
 Same problem can be observed using Mono 1.1.15 on Windows, whereas works
 with Mono 1.1.8 on Windows.
 
 ------- Additional Comments From gonzalo at ximian.com  2006-05-18 19:31 -------
 That error means that mbas is not anywhere in your PATH.
+
+------- Additional Comments From kevin-f at linkprior.com  2006-05-18 20:26 -------
+I have ensured mbas is in the path on SuSE, which has changed the
+behaviour (which now mirrors what was in fact different behaviour on
+Windows), but there is still a problem with 1.1.15 that is fine on
+1.1.8. I shall provide details of the changed behaviour below, but
+first of all I should like to make some observations which may
+indicate that pathing is not really the issue (observations before
+making path changes):
+
+1. The SuSE box has no mono directories in the path at all, not for
+1.1.8 nor 1.1.15. Yet xsp serves the page fine on 1.1.8, but not if
+switching to 1.1.15. 
+2. I can write exactly the same trivial WebForm in C# and it works
+fine on 1.1.8 and 1.1.15. The scripts mbas and mcs are in the same bin
+directories in their installed directories trees, so no difference in
+pathing.
+3. Since the WebForm had already been compiled into a dll in the bin
+subdirectory, is it not the case that there was no need for mbas at
+all? When I first began to develop with Mono, mbas was not very
+complete, so I had to compile on Windows then copy dll to SuSE. Still
+do, but now with 1.1.15 Mono appears to have begun to try to compile
+where it previously did not.
+
+Having added /opt/mono-1.1.15/bin to the path, if I execute this - 
+/opt/mono-1.1.15/bin/xsp --root . --port 8088 --applications /:.
+
+- then try to access the WebForm, this is the result - 
+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/root-temp-aspnet-0/39b6c921/74457.0.vb(79,37) :
+error BC30524: Property 'Label1' lacks a 'get' accesor
+/tmp/root-temp-aspnet-0/39b6c921/74457.0.vb(87,13) : error BC30524:
+Property 'Label1' lacks a 'set' accesor
+/tmp/root-temp-aspnet-0/39b6c921/74457.0.vb(97,13) : error BC30524:
+Property 'TraceModeValue' lacks a 'set' accesor
+/tmp/root-temp-aspnet-0/39b6c921/74457.0.vb(52,27) : error BC30524:
+Property 'Context' lacks a 'get' accesor
+
+File name: /srv/www/HW/WebForm1.aspx
+
+Source File: /tmp/root-temp-aspnet-0/39b6c921/74457.0.vb
+
+Line 1:
+'------------------------------------------------------------------------------
+Line 2: ' <autogenerated>
+Line 3: '     This code was generated by a tool.
+Line 4: '     Mono Runtime Version: 1.1.4322.2032
+Line 5: '
+Line 6: '     Changes to this file may cause incorrect behavior and
+will be lost if 
+Line 7: '     the code is regenerated.
+Line 8: ' </autogenerated>
+Line 9:
+'------------------------------------------------------------------------------
+Line 10: 
+Line 11: Option Explicit On
+Line 12: Option Strict Off
+Line 13: 
+Line 14: Imports System
+Line 15: Imports System.Collections
+Line 16: Imports System.Collections.Specialized
+Line 17: Imports System.Configuration
+Line 18: Imports System.Text
+Line 19: Imports System.Text.RegularExpressions
+Line 20: Imports System.Web
+Line 21: Imports System.Web.Caching
+Line 22: Imports System.Web.Security
+Line 23: Imports System.Web.SessionState
+Line 24: Imports System.Web.UI
+Line 25: Imports System.Web.UI.WebControls
+Line 26: Imports System.Web.UI.HtmlControls
+Line 27: 
+Line 28: Namespace ASP
+Line 29:     Public Class WebForm1_aspx
+Line 30:         Inherits HelloWorld.WebForm1
+Line 31:         Implements System.Web.SessionState.IRequiresSessionState
+Line 32:         
+Line 33:         Private Shared __initialized As Boolean = false
+Line 34:         
+Line 35:         Protected Form1 As System.Web.UI.HtmlControls.HtmlForm
+Line 36:         
+Line 37:         Public Sub New()
+Line 38:             MyBase.New()
+Line 39:             If (ASP.WebForm1_aspx.__initialized = false) Then
+Line 40:                 ASP.WebForm1_aspx.__initialized = true
+Line 41:             End If
+Line 42:         End Sub
+Line 43:         
+Line 44:         Protected Overrides ReadOnly Property
+SupportAutoEvents As Boolean
+Line 45:             Get
+Line 46:                 Return false
+Line 47:             End Get
+Line 48:         End Property
+Line 49:         
+Line 50:         Protected ReadOnly Property ApplicationInstance As
+System.Web.HttpApplication
+Line 51:             Get
+Line 52:                 Return CType(Me.Context.ApplicationInstance,
+System.Web.HttpApplication)
+Line 53:             End Get
+Line 54:         End Property
+Line 55:         
+Line 56:         Public Overrides ReadOnly Property
+TemplateSourceDirectory As String
+Line 57:             Get
+Line 58:                 Return "/"
+Line 59:             End Get
+Line 60:         End Property
+Line 61:         
+Line 62:         Private Sub __BuildControlTree(ByVal __ctrl As
+WebForm1_aspx)
+Line 63:             Dim __parser As System.Web.UI.IParserAccessor =
+CType(__ctrl, System.Web.UI.IParserAccessor)
+Line 64:             __parser.AddParsedSubObject(New
+System.Web.UI.LiteralControl("<!DOCTYPE HTML PUBLIC ""-//W3C//DTD HTML
+4.0
+Transitional//EN"">"&Microsoft.VisualBasic.ChrW(10)&"<HTML>"&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&"<HEAD>"&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&"<title>WebForm1</title>"&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&"<meta
+name=""GENERATOR"" content=""Microsoft Visual Studio .NET
+7.1"">"&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&"<meta
+name=""CODE_LANGUAGE"" content=""Visual Basic .NET
+7.1"">"&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&"<meta
+name=""vs_defaultClientScript""
+content=""JavaScript"">"&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&"<meta
+name=""vs_targetSchema""
+content=""http://schemas.microsoft.com/intellisense/ie5"">"&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&"</HEAD>"&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&"<body
+MS_POSITIONING=""GridLayout"">"&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)))
+Line 65:             Me.__BuildControl_Form1()
+Line 66:             __parser.AddParsedSubObject(Me.Form1)
+Line 67:             __parser.AddParsedSubObject(New
+System.Web.UI.LiteralControl(""&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&"</body>"&Microsoft.VisualBasic.ChrW(10)&"</HTML>"&Microsoft.VisualBasic.ChrW(10)))
+Line 68:         End Sub
+Line 69:         
+Line 70:         Private Function __BuildControl_Form1() As
+System.Web.UI.Control
+Line 71:             Dim __ctrl As System.Web.UI.HtmlControls.HtmlForm
+Line 72:             __ctrl = New System.Web.UI.HtmlControls.HtmlForm()
+Line 73:             Me.Form1 = __ctrl
+Line 74:             __ctrl.ID = "Form1"
+Line 75:             __ctrl.Method = "post"
+Line 76:             Dim __parser As System.Web.UI.IParserAccessor =
+CType(__ctrl, System.Web.UI.IParserAccessor)
+Line 77:             __parser.AddParsedSubObject(New
+System.Web.UI.LiteralControl(""&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)))
+Line 78:             Me.__BuildControl_Label1()
+Line 79:             __parser.AddParsedSubObject(Me.Label1)
+Line 80:             __parser.AddParsedSubObject(New
+System.Web.UI.LiteralControl(""&Microsoft.VisualBasic.ChrW(10)&Microsoft.VisualBasic.ChrW(9)&Microsoft.VisualBasic.ChrW(9)))
+Line 81:             Return __ctrl
+Line 82:         End Function
+Line 83:         
+Line 84:         Private Function __BuildControl_Label1() As
+System.Web.UI.Control
+Line 85:             Dim __ctrl As System.Web.UI.WebControls.Label
+Line 86:             __ctrl = New System.Web.UI.WebControls.Label()
+Line 87:             Me.Label1 = __ctrl
+Line 88:             __ctrl.ID = "Label1"
+Line 89:             CType(__ctrl,
+System.Web.UI.IAttributeAccessor).SetAttribute("style", "Z-INDEX: 101;
+LEFT: 104px; POSITION: absolute; TOP: 96px")
+Line 90:             Dim __parser As System.Web.UI.IParserAccessor =
+CType(__ctrl, System.Web.UI.IParserAccessor)
+Line 91:             __parser.AddParsedSubObject(New
+System.Web.UI.LiteralControl("Label"))
+Line 92:             Return __ctrl
+Line 93:         End Function
+Line 94:         
+Line 95:         Protected Overrides Sub FrameworkInitialize()
+Line 96:             MyBase.FrameworkInitialize()
+Line 97:             Me.TraceModeValue = System.Web.TraceMode.SortByTime
+Line 98:             Me.Request.ValidateInput()
+Line 99:             Me.__BuildControlTree(Me)
+Line 100:         End Sub
+Line 101:         
+Line 102:         Public Overrides Function GetTypeHashCode() As Integer
+Line 103:             Return 1822404600
+Line 104:         End Function
+Line 105:     End Class
+Line 106: End Namespace
+
+Note:
+1. If I then stop xsp and run xsp of Mono 1.1.8, the page is again
+served fine
+2. The error output above is in fact now the same error output
+produced on Windows with 1.1.15 - I had not noticed before that the
+error on Windows was different. The batch file used to launch xsp
+1.1.15 on Windows does indeed set the path so mbas can be found. 
+
+


More information about the mono-bugs mailing list