[Mono-bugs] [Bug 64047][Nor] New - Mono dll caching problem

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 25 Aug 2004 13:01:16 -0400 (EDT)


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 garth@webconexion.net.

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

--- shadow/64047	2004-08-25 13:01:16.000000000 -0400
+++ shadow/64047.tmp.2044	2004-08-25 13:01:16.000000000 -0400
@@ -0,0 +1,102 @@
+Bug#: 64047
+Product: Mono: Runtime
+Version: unspecified
+OS: Red Hat 8.0
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: garth@webconexion.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Mono dll caching problem
+
+Please fill in this template when reporting a bug, unless you know what 
+you are doing.
+Description of Problem:
+
+With Code Behind changes that are made in the compiled DLL are being 
+cached somehow even though DLLs are removed from the /bin directory 
+and /tmp folder. 
+
+Steps to reproduce the problem:
+1. CodeBehind.aspx
+
+<%@ Page language="c#" Codebehind="CodeBehind.aspx.cs"
+Inherits="mynamespace.HelloWorld" %>
+<html>
+<body>
+
+<form id="Form1" method="post" runat="server">
+<div id="divHelloWorld" runat="server"></div>
+<asp:Label id="hello" runat="server" />
+</form>
+
+</body>
+</html>
+
+2. CodeBehind.aspx.cs
+
+using System;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.HtmlControls;
+using System.Web.UI.WebControls;
+
+namespace mynamespace
+{
+ public class HelloWorld : System.Web.UI.Page
+ {
+  protected HtmlGenericControl divHelloWorld;
+  
+  private void Page_Load(object sender, System.EventArgs e)
+  {
+   divHelloWorld.InnerText = "hello, world and boo";
+  }
+  
+  override protected void OnInit(EventArgs e)
+  {
+   this.Load += new System.EventHandler(this.Page_Load);
+  }
+ }
+}
+
+3. Compile the Code Behind with:
+
+mcs CodeBehind.aspx.cs -r:System.Web -o ../bin/HelloWorld.dll -
+target:library
+
+4. View the CodeBehind.aspx, you should see at this stage: "hello, world 
+and boo"
+
+5. Change the CodeBehind.aspx.cs file to display a different hello world 
+piece of text
+
+6. re-compile the CodeBehind.aspx.cs
+
+7. touch the CodeBehind.aspx
+
+6. View the CodeBehind.aspx page.
+
+Actual Results:
+
+You still see the "hello, world and boo" and not the new hello world 
+message.
+
+Expected Results:
+
+The new hello world example.
+
+How often does this happen? 
+
+All the time until I completely shut down apache and delete all tmp files 
+and restart the mono server.
+
+Additional Information:
+
+I'm using mono 1.0