[Mono-bugs] [Bug 76165][Maj] New - XSP System.Runtime.Serialization.SerializationException using ASP.NET with VB-code as codebehind.

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Sep 20 10:28:10 EDT 2005


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 jan.bouwhuis at solcon.nl.

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

--- shadow/76165	2005-09-20 10:28:10.000000000 -0400
+++ shadow/76165.tmp.23781	2005-09-20 10:28:10.000000000 -0400
@@ -0,0 +1,152 @@
+Bug#: 76165
+Product: Mono: Class Libraries
+Version: 1.1
+OS: SUSE 9.2
+OS Details: actual using Suse 9.3
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: System
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: jan.bouwhuis at solcon.nl               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: XSP System.Runtime.Serialization.SerializationException using ASP.NET with VB-code as codebehind.
+
+Description of Problem:
+
+I compiled my own System.Web from source 20050916 (see bug 76096). Using 
+code behind a VB project fails with about the same errors. Using C# the 
+code works fine. I uses VS 2002 and precompiled on Windows XP. 
+I run mono 1.1.9 with xsp on Suse 9.3. 
+
+Steps to reproduce the problem:
+
+Example code: 
+index.aspx 
+ 
+<%@ Page Language="vb" AutoEventWireup="false" Codebehind="index.aspx.vb" 
+Inherits="monotestvb.WebForm1"%> 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 
+<HTML> 
+  <HEAD> 
+    <title>test</title> 
+    <meta name="GENERATOR" content="Microsoft Visual Studio.NET 7.0"> 
+    <meta name="CODE_LANGUAGE" content="Visual Basic 7.0"> 
+    <meta name="vs_defaultClientScript" content="JavaScript"> 
+    <meta name="vs_targetSchema" 
+content="http://schemas.microsoft.com/intellisense/ie5"> 
+  </HEAD> 
+  <body> 
+    <form id="Form1" method="post" runat="server"> 
+ <% 
+ TestSub() 
+ %> 
+    </form> 
+  </body> 
+</HTML> 
+ 
+index.aspx.vb 
+ 
+Public Class WebForm1 
+  Inherits System.Web.UI.Page 
+ 
+#Region " Web Form Designer Generated Code " 
+ 
+  'This call is required by the Web Form Designer. 
+  <System.Diagnostics.DebuggerStepThrough()> Private Sub 
+InitializeComponent() 
+ 
+  End Sub 
+ 
+  Private Sub Page_Init(ByVal sender As System.Object, ByVal e As 
+System.EventArgs) Handles MyBase.Init 
+    'CODEGEN: This method call is required by the Web Form Designer 
+    'Do not modify it using the code editor. 
+    InitializeComponent() 
+  End Sub 
+ 
+#End Region 
+ 
+  Private Sub Page_Load(ByVal sender As System.Object, ByVal e As 
+System.EventArgs) Handles MyBase.Load 
+    'Put user code to initialize the page here 
+  End Sub 
+  Public Sub TestSub() 
+    Dim n As Integer 
+    For n = 1 To 10 
+ Response.Write(n & "<br>") 
+    Next 
+  End Sub 
+End Class 
+
+Actual Results:
+XSP result: 
+xsp 
+Listening on port: 8080 
+Listening on address: 0.0.0.0 
+Root directory: /home/jbouwh/MonoTestVB 
+Hit Return to stop the server. 
+System.Runtime.Serialization.SerializationException: Type 
+System.Web.Compilation.CompilationException is not marked as 
+Serializable. 
+ 
+Server stack trace: 
+in <0x000d4> 
+System.Runtime.Serialization.Formatters.Binary.BinaryCommon:CheckSeriali 
+zable (System.Type type, ISurrogateSelector selector, StreamingContext 
+context) 
+in <0x00145> 
+System.Runtime.Serialization.Formatters.Binary.ObjectWriter:GetObjectDat 
+a (System.Object obj, 
+System.Runtime.Serialization.Formatters.Binary.TypeMetadata metadata, 
+System.Object data) 
+in <0x00044> 
+System.Runtime.Serialization.Formatters.Binary.ObjectWriter:WriteObject 
+(System.IO.BinaryWriter writer, Int64 id, System.Object obj) 
+in <0x00108> 
+System.Runtime.Serialization.Formatters.Binary.ObjectWriter:WriteObjectI 
+nstance (System.IO.BinaryWriter writer, System.Object obj, Boolean 
+isValueObject) 
+in <0x0002d> 
+System.Runtime.Serialization.Formatters.Binary.ObjectWriter:WriteQueuedO 
+bjects (System.IO.BinaryWriter writer) 
+in <0x00037> 
+System.Runtime.Serialization.Formatters.Binary.ObjectWriter:WriteObjectG 
+raph (System.IO.BinaryWriter writer, System.Object obj, 
+System.Runtime.Remoting.Messaging.Header[] headers) 
+in <0x00200> 
+System.Runtime.Serialization.Formatters.Binary.BinaryFormatter:Serialize  
+(System.IO.Stream serializationStream, System.Object graph, 
+System.Runtime.Remoting.Messaging.Header[] headers) 
+in <0x00015> 
+System.Runtime.Serialization.Formatters.Binary.BinaryFormatter:Serialize  
+(System.IO.Stream serializationStream, System.Object graph) 
+in <0x00068> 
+System.Runtime.Remoting.RemotingServices:SerializeExceptionData 
+(System.Exception ex) 
+ 
+Exception rethrown at [0]: 
+ 
+in (wrapper xdomain-invoke) 
+Mono.WebServer.XSPApplicationHost:ProcessRequest 
+(int,long,int,long,int,string,string,string,string,byte
+[],string,intptr,Mono.WebServer.SslInformations) 
+in (wrapper remoting-invoke-with-check) 
+Mono.WebServer.XSPApplicationHost:ProcessRequest 
+(int,long,int,long,int,string,string,string,string,byte
+[],string,intptr,Mono.WebServer.SslInformations) 
+in <0x0062c> Mono.WebServer.XSPWorker:Run (System.Object state) 
+
+
+Expected Results:
+A working application.
+
+How often does this happen? 
+Every Time
+
+Additional Information:
+The code worked in version 1.1.8


More information about the mono-bugs mailing list