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 4078708
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T17:42:30+00:00 2026-05-20T17:42:30+00:00

Thanks to the published ASP.NET MVC conventions, I’m looking much more closely at the

  • 0

Thanks to the published ASP.NET MVC conventions, I’m looking much more closely at the idea of universal conventions over configuration for my projects (versus ‘home-rolled’ conventions, or grabbing from a variety of conventions).

However, I’m not seeing much, if anything, about the preferred location of ASHX files in, for example, ASP.NET MVC projects (as well as Web forms projects).

Is there a recommended directory structure for these? Perhaps there’s a published specification with a much larger directory structure accounted for?

My personal convention has been to place these within a top-level Handlers directory, but I honestly haven’t personally seen any other projects that really do this.

I suppose, depending upon what it does (for example, generating an image), that one could argue this might go into the Content directory, but it seems this directory is generally used for static files.

(Aside: One could argue that ASHX files are not needed in MVC projects, but based on questions posted here, it appears ASHX files still have their place in MVC projects.)

EDIT: Ignore MVC projects, since I’m suggesting that as one example. How about Web Forms, then?

  • 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-20T17:42:31+00:00Added an answer on May 20, 2026 at 5:42 pm

    My personal convention is to not create handlers as ASHX files, but as classes delivering form IHttpHandler interface. I keep them in separate .dll file and register through web.config.

    On the other hand all the scenarios described in question you have linked are easy to achieve within ASP.NET MVC Framework, without additional handlers.

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

Sidebar

Related Questions

This is driving me crazy. I written a simple ASP.NET MVC 1.0 application I
I am currently working on a project that consists of an ASP.NET MVC 2.0
I have an ASP.NET MVC project that works fine on my local machine (no
I have an ASP.NET MVC 4 site running perfectly well in an Azure WebRole.
I am in the process of creating a website using ASP.NET MVC. I went
I've been going around and around on this issue. I've got a ASP.NET MVC
I have an ASP.NET MVC 4 app that I'm trying to deploy as an
I have published an asp.net application to a sub directory of my IIS application.
We have an ASP.NET MVC web app which allows users to publish messages onto
I have a ASP.Net MVC application which serves user pages with URL like -

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.