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 ?
//--
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 ?