[Mono-bugs] [Bug 52615][Wis] New - namespace / object scope differs for .asmx files on MS Framework and Mono

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 5 Jan 2004 17:54:56 -0500 (EST)


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 chris@turchin.net.

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

--- shadow/52615	2004-01-05 17:54:56.000000000 -0500
+++ shadow/52615.tmp.11439	2004-01-05 17:54:56.000000000 -0500
@@ -0,0 +1,49 @@
+Bug#: 52615
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: System.Web
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: chris@turchin.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: namespace / object scope differs for .asmx files on MS Framework and Mono
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+namespace/scope differs for .asmx files on MS Framework and Mono. On MS
+Framework, this works in an asmx file:
+
+string result = Server.MapPath(confDir + file);
+
+In mono I had to change it to this:
+
+string result = HttpContext.Current.Server.MapPath(confDir + file);
+
+Steps to reproduce the problem:
+1. see above.
+
+Actual Results:
+
+Server object is null
+
+Expected Results:
+
+Server object is not null
+How often does this happen? 
+
+always
+
+Additional Information:
+
+encountered getting the rss generator for blogx to work, will attach
+working copy of asmx file.