Bugzilla – Bug 315877
Mono dll caching problem
Last modified: 2007-09-15 21:24:46 UTC
---- Reported by garth@webconexion.net 2004-08-25 13:01:16 MST ---- 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 ---- Additional Comments From gonzalo@ximian.com 2004-08-25 19:48:58 MST ---- *** This bug has been marked as a duplicate of https://bugzilla.novell.com/show_bug.cgi?id=MONO52756 *** This bug was marked DUPLICATE in the database it was moved from. Changing resolution to "MOVED"