[asp.net] Fix for bug #650695. Implements the System.Web.{HttpNotFoundHandler,HttpNot...
[mono.git] / mcs / class / System.Web / System.Web.UI / PageParser.jvm.cs
index 8c87a5fbf196c739bbf788b3cb58a1840c85c3e8..c96093806da4b8d86a18c90908b1a6624454f4e8 100644 (file)
@@ -42,15 +42,14 @@ namespace System.Web.UI
        [AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
        public sealed class PageParser
        {
-               [MonoTODO]
                public static IHttpHandler GetCompiledPageInstance (string virtualPath,
                                                                    string inputFile, 
                                                                    HttpContext context)
                {
-                       Type tmpType = PageMapper.GetObjectType(virtualPath);\r
-                       if (tmpType == null)\r
-                               throw new InvalidOperationException ("Documentation page '" + virtualPath + "' not found");\r
-                       Object obj = Activator.CreateInstance(tmpType);\r
+                       Type tmpType = PageMapper.GetObjectType(context, virtualPath);
+                       if (tmpType == null)
+                               throw new InvalidOperationException ("Documentation page '" + virtualPath + "' not found");
+                       Object obj = Activator.CreateInstance(tmpType);
                        return (IHttpHandler) obj;
                }