[Mono-devel-list] Mono 1.0 caching bug?

Garthfield Carter garth at webconexion.net
Tue Aug 24 19:05:14 EDT 2004

I hope this is the right list, it did mention that people can discuss bugs. I have a very strange caching problem with Code Behind, here's my CodeBehind.aspx file:

<%@ Page language="c#" Codebehind="CodeBehind.aspx.cs" Inherits="mynamespace.HelloWorld" %>

<form id="Form1" method="post" runat="server">
<div id="divHelloWorld" runat="server"></div>
<asp:Label id="hello" runat="server" />


And here's my code behind file: 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);

I compile the code behine with the following:

mcs CodeBehind.aspx.cs -r:System.Web -o ../bin/HelloWorld.dll -target:library

Which creates a HelloWorld.dll in my bin folder. When I run the CodeBehind.aspx file I get the message "hello, world and boo" now if I change the message in the CodeBehind.aspx.cs and recompile and then touch the CodeBehind.aspx the page compiles itself as there is a long pause but the message still says "hello, world and boo" even though the compiled dll is has a different message compiled into it? I'm pulling my hair out. The only physical way for it to start displaying the new hello world message is for me to stop the Apache, kill the mono processes that are still running (don't know why these are there when I've just shut down apache) and remove all of the dll's, .wapi etc from /tmp and then restart Apache.

Is there some setting I'm missing from the standard install?

Please let me know if there's some more information that's needed from me?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20040825/f623a63e/attachment.html 

More information about the Mono-devel-list mailing list