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 [EMAIL PROTECTED]

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

--- shadow/80897        2007-02-19 11:41:56.000000000 -0500
+++ shadow/80897.tmp.5559       2007-02-19 11:41:56.000000000 -0500
@@ -0,0 +1,61 @@
+Bug#: 80897
+Product: Mono: Tools
+Version: unspecified
+OS: GNU/Linux [Other]
+OS Details: FC4 mono 1.2.3.0 xsp 1.2.3.0
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: XSP
+AssignedTo: [EMAIL PROTECTED]                            
+ReportedBy: [EMAIL PROTECTED]               
+QAContact: [EMAIL PROTECTED]
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: httpHandlers in web.config cannot load IHttpModules compiled 
automatically in App_Code
+
+web.config contains:
+<?xml version="1.0"?>
+<configuration>
+  <system.web>
+    <sessionState mode="Off" />
+    <httpHandlers>
+      <add verb="GET" path="Foo" type="Weles.Foo"/>
+    </httpHandlers>
+  </system.web>
+</configuration>
+
+App_Code/Service.cs contains:
+using System;
+using System.Web;
+
+namespace Weles
+{
+    public class Foo : System.Web.IHttpHandler
+    {
+        void IHttpHandler.ProcessRequest(HttpContext context) { }
+        bool IHttpHandler.IsReusable { get { return true; } }
+    }
+}
+When trying to access /Foo, the expected behaviour is a blank page.
+The actual result is:
+
+Failed to load httpHandler type `Weles.Foo'
+Description: Error processing request.
+
+Error Message: HTTP 500. Failed to load httpHandler type `Weles.Foo'
+
+Stack Trace:
+
+System.TypeLoadException: Could not load type 'Weles.Foo'.
+  at <0x00000> <unknown method>
+  at (wrapper managed-to-native) System.Type:internal_from_name
+(string,bool,bool)
+  at System.Type.GetType (System.String typeName, Boolean throwOnError)
+[0x00000] 
+  at System.Web.Configuration.HttpHandlerAction.LoadType (System.String
+type_name) [0x00000] 
+
+When I compile Service.cs by hand and put it into bin, everytjing works fine.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to