HttpHandler not working :-)

L

Lloyd Dupont

I have a simple HttpHandler
//--
using System.Web;
namespace Acme {
public class SimpleHandler : IHttpHandler {
public void ProcessRequest(HttpContext context) {
context.Response.Write("Hello World!");
}

public bool IsReusable {
get {
return true;
}
}
}
}
//--
I add in the web config file (perso/Web.config) this simple lines:
//--
<httpHandlers>
<add verb="*"
path="simple.aspx"
type="perso.FileService, perso"/>
</httpHandlers>
//--

but when I type ' http://localhost/simple.aspx ' or '
http://localhost/perso/simple.aspx ' I have an error 404.
I know that my HttpHandler is registered because if I put incorrect value in
the config file I get the error page. however I never go into my handler (I
put some call to Trace.Write() in it, to be sure ...)

any tip ? advice ? experience ? whatever ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,900
Latest member
Nell636132

Latest Threads

Top