Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3635874
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T00:57:34+00:00 2026-05-19T00:57:34+00:00

I have created a HttpHandler that I would like to use with my asp.net

  • 0

I have created a HttpHandler that I would like to use with my asp.net mvc application (the version of mvc is not relevant). How do I make my HttpHandler to handle request to a certain directory? The actual file in the directory doesn’t exist, but that is fine since I want to create the response. I want it to work in IIS 7 of course, but also in Visual studio for debugging purpose. When searching the internet for it I found that you register handlers in web.config under the system.webServer node like:

<system.webServer>
  <handlers>
    <add name="MyHandler" path="/MyPath/*" verb="*" type="Namespace.To.MyHandler" resourceType="Unspecified" preCondition="integratedMode" />
  </handlers>
</system.webServer>

But my handler doesn’t get fired.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T00:57:34+00:00Added an answer on May 19, 2026 at 12:57 am

    Ok, so it turned out that this is not what I want to do at all. What I ended up doing was creating my custom IRouteHandler and mapped a route to the folder I wanted my handler to use. My custom IRouteHandler only created a new instance of my already existing IHttpHandler, since I could use the same one. I will provide more info here later on.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application that depends on a generic HttpHandler I created, and it
I have an ASP.Net webforms app, that uses Ninject 2.2.0.0 I have a HTTPHandler
I have a web application built on ASP.NET MVC framework which requires a service
My Asp.net application is hosted over Azure Cloud, In that application I do have
I have created an android application that calls (using kSOAP library) a SOAP based
Can ASP.Net routing (not MVC) be used to serve static files? Say I want
Here's the situation... Site 1) ASP.NET MVC application for customers to login, view and
I have created an Httphandler in my application and I have uploaded the project
In an ASP.NET MVC application when using a custom Dependency Injection container (in this
I'm building an ASP.Net MVC website. Rather than have everything in one project, I've

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.