[Mono-bugs] [Bug 47685][Nor] New - ASP.NET: LoadControl assumes paths are relative to server root

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 17 Aug 2003 06:58:32 -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 eric@veltman.nu.


--- shadow/47685	2003-08-17 06:58:32.000000000 -0400
+++ shadow/47685.tmp.25872	2003-08-17 06:58:32.000000000 -0400
@@ -0,0 +1,43 @@
+Bug#: 47685
+Product: Mono/Class Libraries
+Version: unspecified
+OS: Suse 8.2
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: System.Web
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: eric@veltman.nu               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: ASP.NET: LoadControl assumes paths are relative to server root
+Description of Problem: 
+LoadControl in ASP.NET assumes that paths are relative to the server 
+Steps to reproduce the problem: 
+Create a simple user control ( with codebehind ) and put it in a 
+subdirectory of the server root. Put another user control ( with 
+codebehind ) there as well. From the second user control, dynamically 
+load the first user control with LoadControl. This currently only works 
+if you specify the subdirectory in the LoadControl call. 
+Actual Results: 
+Does not find control. 
+Expected Results: 
+LoadControl should assume paths are relative to the aspx or ascx from 
+where they were called. 
+How often does this happen?  
+Always, I think. 
+Additional Information: 
+Mono 0.26 release version, compiled with -d:NET_1_1, using xsp. 
+I've put all assemblies ( also from the usercontrols ) in the bin 
+subdirectory of the server root.