HttpHandler in IIS7 and Visual Studio 2010

I am trying to run httphandler (ashx) on asp.net 4 website.

When I call it from the integrated Visual Studio server, it returns a 404 error.

It works if I call it on a site configured in local IIS.

Can anybody help?

+3
source share
1 answer

Are you using ASP.NET MVC or System.Web.Routing?

Do you have something like

routes.IgnoreRoute("{resource}.ashx/{*pathInfo}");

in your function RegisterRoutes()in your instance HttpApplication?

Keep in mind that the Visual Studio server environment executes all requests through a managed pipeline.

httpHandler system.web Web.config? ( IIS7 system.webServer, , Cassini.)

+2

Source: https://habr.com/ru/post/1759766/


All Articles