Author: mhabersack
Date: 2007-09-11 05:20:47 -0400 (Tue, 11 Sep 2007)
New Revision: 85628

Modified:
   trunk/mcs/class/System.Web/System.Web.UI/ChangeLog
   trunk/mcs/class/System.Web/System.Web.UI/WebServiceParser.cs
Log:
2007-09-11  Marek Habersack  <[EMAIL PROTECTED]>

            * WebServiceParser.cs: inputFile is a virtual path to the service,
            not a physical one in GetCompiledType.


Modified: trunk/mcs/class/System.Web/System.Web.UI/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI/ChangeLog  2007-09-11 08:46:06 UTC 
(rev 85627)
+++ trunk/mcs/class/System.Web/System.Web.UI/ChangeLog  2007-09-11 09:20:47 UTC 
(rev 85628)
@@ -1,3 +1,8 @@
+2007-09-11  Marek Habersack  <[EMAIL PROTECTED]>
+
+       * WebServiceParser.cs: inputFile is a virtual path to the service,
+       not a physical one in GetCompiledType.
+
 2007-09-05  Marek Habersack  <[EMAIL PROTECTED]>
 
        * RootBuilder.cs: make Foundry settable, but protect the backing

Modified: trunk/mcs/class/System.Web/System.Web.UI/WebServiceParser.cs
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI/WebServiceParser.cs        
2007-09-11 08:46:06 UTC (rev 85627)
+++ trunk/mcs/class/System.Web/System.Web.UI/WebServiceParser.cs        
2007-09-11 09:20:47 UTC (rev 85628)
@@ -52,7 +52,15 @@
 
                public static Type GetCompiledType (string inputFile, 
HttpContext context)
                {
-                       WebServiceParser parser = new WebServiceParser 
(context, null, inputFile);
+                       string physPath;
+                       HttpRequest req = context != null ? context.Request : 
null;
+                       
+                       if (req != null)
+                               physPath = req.MapPath (inputFile);
+                       else // likely to fail
+                               physPath = inputFile;
+                       
+                       WebServiceParser parser = new WebServiceParser 
(context, inputFile, physPath);
                        Type type = parser.GetCompiledTypeFromCache ();
                        if (type != null)
                                return type;

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to