[Mono-bugs] [Bug 78626][Nor] New - Recompilation of modified .ascx files sometimes not triggered

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Jun 14 20:03:40 EDT 2006


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 gonzalo at ximian.com.

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

--- shadow/78626	2006-06-14 20:03:40.000000000 -0400
+++ shadow/78626.tmp.20152	2006-06-14 20:03:40.000000000 -0400
@@ -0,0 +1,61 @@
+Bug#: 78626
+Product: Mono: Class Libraries
+Version: 1.1
+OS: unknown
+OS Details: FC5
+Status: ASSIGNED   
+Resolution: 
+Severity: Unknown
+Priority: Normal
+Component: Sys.Web
+AssignedTo: gonzalo at ximian.com                            
+ReportedBy: juraj at hotfeet.ch               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Recompilation of modified .ascx files sometimes not triggered
+
+To reproduce the problem:
+
+- extract to attached test case, start xsp
+- request test.aspx (-> compilation)
+
+- modify TestControlOne.ascx
+- request test.aspx (-> compilation)
+
+- modify TestControlTwo.ascx
+- request test.aspx (-> compilation)
+
+- modify TestControlOne.ascx again
+- request test.aspx -> no compilation!
+
+------- Additional Comments From juraj at hotfeet.ch  2006-06-12 16:44 -------
+Created an attachment (id=17164)
+test case (test.tar.gz)
+
+
+------- Additional Comments From juraj at hotfeet.ch  2006-06-12 16:55 -------
+To keep track of the source files, a CacheDependency object is created
+for every .aspx/.ascx file.
+But debugging showed that 6 CacheDependency objects are actually being
+created on the first request to test.aspx (which references two .ascx
+files):
+- two objects for [test.aspx, TestControlOne.ascx]
+- four objects for [test.aspx,TestControlOne.ascx,TestControlTwo.ascx]
+
+One duplication is the result of _both_ AspGenerator.GetCompiledType
+and CachingCompiler.Compile creating equivalent CacheDependency objects.
+
+So enough though the source files are being monitored by multiple
+watchers, the compilation is not always being triggered...
+
+------- Additional Comments From juraj at hotfeet.ch  2006-06-12 17:01 -------
+I'm attaching a small patch which I used for debugging. It dumps a
+stacktrace and the most important info to stderr, whenever
+CacheDependency.ctor or CacheDependency.OnChanged are called.
+
+------- Additional Comments From juraj at hotfeet.ch  2006-06-12 17:01 -------
+Created an attachment (id=17165)
+CacheDep.patch - just for debugging purposes
+


More information about the mono-bugs mailing list