[Mono-bugs] [Bug 73373][Blo] New - mbas compiler crashes while compile ASP.NET pages with Custom Controls

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 4 Mar 2005 20:23:37 -0500 (EST)


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 rogerio.araujo@gmail.com.

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

--- shadow/73373	2005-03-04 20:23:37.000000000 -0500
+++ shadow/73373.tmp.16944	2005-03-04 20:23:37.000000000 -0500
@@ -0,0 +1,81 @@
+Bug#: 73373
+Product: Mono: Compilers
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Blocker
+Component: Basic
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: rogerio.araujo@gmail.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mbas compiler crashes while compile ASP.NET pages with Custom Controls
+
+Description of Problem:
+
+When i try to compile a ASP.NET page with a custom control i'm getting the
+message mentioned in Actual Results section of this bug.
+
+
+Steps to reproduce the problem:
+1. Download the these 2 attachments with this bug.
+2. Create a webapplication for this two files.
+3. The first attachment is a ASP.NET and the second is the custom control.
+4. In the second line of ASP.NET page change Src="download.ascx" to the
+name of file that contains the custom control.
+5. Open your browser and load the ASP.NET page.
+6. You will got the "Cannot find 'XXXXX.dll'" error, after this if you
+compile the XXXXX.cs with this command line: mbas -r:System.Web
+-r:ByteFX.Data 24969.vb you will got the error below.
+7. XXXXX.dll where XXXXX means 5 number automatically generated by xsp
+on-the-fly before output the ASP.NET page content.
+
+Actual Results:
+Exception: System.NotSupportedException: Not in an exception block
+in <0x00075> System.Reflection.Emit.ILGenerator:BeginFinallyBlock ()
+in <0x00452> Mono.MonoBASIC.Foreach:EmitCollectionForeach
+(Mono.MonoBASIC.EmitContext ec)
+in <0x00090> Mono.MonoBASIC.Foreach:DoEmit (Mono.MonoBASIC.EmitContext ec)
+in <0x00022> Mono.MonoBASIC.Statement:Emit (Mono.MonoBASIC.EmitContext ec)
+in <0x00098> Mono.MonoBASIC.Block:DoEmit (Mono.MonoBASIC.EmitContext ec)
+in <0x00022> Mono.MonoBASIC.Statement:Emit (Mono.MonoBASIC.EmitContext ec)
+in <0x00098> Mono.MonoBASIC.Block:DoEmit (Mono.MonoBASIC.EmitContext ec)
+in <0x00022> Mono.MonoBASIC.Statement:Emit (Mono.MonoBASIC.EmitContext ec)
+in <0x000e1> Mono.MonoBASIC.If:DoEmit (Mono.MonoBASIC.EmitContext ec)
+in <0x00022> Mono.MonoBASIC.Statement:Emit (Mono.MonoBASIC.EmitContext ec)
+in <0x00098> Mono.MonoBASIC.Block:DoEmit (Mono.MonoBASIC.EmitContext ec)
+in <0x00022> Mono.MonoBASIC.Statement:Emit (Mono.MonoBASIC.EmitContext ec)
+in <0x00098> Mono.MonoBASIC.Block:DoEmit (Mono.MonoBASIC.EmitContext ec)
+in <0x00022> Mono.MonoBASIC.Statement:Emit (Mono.MonoBASIC.EmitContext ec)
+in <0x00098> Mono.MonoBASIC.Block:DoEmit (Mono.MonoBASIC.EmitContext ec)
+in <0x00022> Mono.MonoBASIC.Statement:Emit (Mono.MonoBASIC.EmitContext ec)
+in <0x00098> Mono.MonoBASIC.Block:DoEmit (Mono.MonoBASIC.EmitContext ec)
+in <0x00022> Mono.MonoBASIC.Statement:Emit (Mono.MonoBASIC.EmitContext ec)
+in <0x00098> Mono.MonoBASIC.Block:DoEmit (Mono.MonoBASIC.EmitContext ec)
+in <0x00022> Mono.MonoBASIC.Statement:Emit (Mono.MonoBASIC.EmitContext ec)
+in <0x00098> Mono.MonoBASIC.Block:DoEmit (Mono.MonoBASIC.EmitContext ec)
+in <0x00022> Mono.MonoBASIC.Statement:Emit (Mono.MonoBASIC.EmitContext ec)
+in <0x0012f> Mono.MonoBASIC.EmitContext:EmitTopBlock (Mono.MonoBASIC.Block
+block, System.String bname, Mono.MonoBASIC.InternalParameters ip, Location loc)
+in <0x0044d> Mono.MonoBASIC.MethodData:Emit (Mono.MonoBASIC.TypeContainer
+parent, Mono.MonoBASIC.Block block, System.Object kind)
+in <0x00031> Mono.MonoBASIC.Method:Emit (Mono.MonoBASIC.TypeContainer parent)
+in <0x00253> Mono.MonoBASIC.TypeContainer:Emit ()
+in <0x0030d> Mono.MonoBASIC.RootContext:EmitCode ()
+in <0x0003f> Mono.Languages.Driver:GenerateAssembly ()
+in <0x0004b> Mono.Languages.Driver:CompileAll ()
+Compilation succeeded
+
+
+Expected Results:
+A sucessfully compiled ASP.NET page with my custom control.
+
+How often does this happen? 
+Ever
+
+Additional Information: