I'm trying to run an httphandler (ashx) in a asp.net 4 website.
When I call it from Visual Studio integrated server, it returns a 404 error.
It works if I call it on the site configured into the local IIS.
Someone could help?
I'm trying to run an httphandler (ashx) in a asp.net 4 website.
When I call it from Visual Studio integrated server, it returns a 404 error.
It works if I call it on the site configured into the local IIS.
Someone could help?
Are you using ASP.NET MVC, or System.Web.Routing?
Do you have something like
in your
RegisterRoutes()
function in yourHttpApplication
instance?One thing to keep in mind is that the Visual Studio server thingie runs all requests through the managed pipeline.
Is the
httpHandler
added to thesystem.web
section of theWeb.config
file? (In IIS7, this goes under thesystem.webServer
section, but I am not sure if newer versions of Cassini will look there.)