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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T04:14:33+00:00 2026-05-14T04:14:33+00:00

I am trying to register a custom HttpHandler in the web.config file. MSDN’s example

  • 0

I am trying to register a custom HttpHandler in the web.config file. MSDN’s example shows an entry that is commented out…um which doesn’t work so well. When I uncomment I receive a Could not load file or assembly 'HttpModule.cs' or one of its dependencies. The system cannot find the file specified. error. The file name is HttpModule.cs and the class name is MyHttpModule. There is no explicit namespace yet.

<httpModules>
     <add name="MyHttpModule" type="MyHttpModule, HttpModule" />
<httpModules>

I am sure I am overlooking the obvious. Do I need to specify the file path somewhere? Thanks in advance.

  • 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-14T04:14:33+00:00Added an answer on May 14, 2026 at 4:14 am

    I am still learning much of the terminology and needed it spelled out for me. In case any of you need the same…

    As an example if:

    • The base class name and project name is TestSite
    • The namespace my class is in is BusinessLogic
    • The class name is PageAuthorization

    in the Web.config file…

    <configuration> 
     <system.web> 
      <httpModules> 
       <add type= "BusinessLogic.PageAuthorization, TestSite" name="PageAuthorization" /> 
      </httpModules> 
     </system.web> 
    </configuration>
    

    In my case I had to mark my class with IHttpModule. The definition of the class would look like:

    public class PageAuthorization : IHttpModule
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to build a web application that requires users to register themselves.
Trying to write out syslog entries containing strings but they don't register. // person.name
I'm trying to write a custom inclusion_tag in django. Following the example on http://docs.djangoproject.com/en/dev/howto/custom-template-tags/
I'm trying to create a custom set of classes that can be added to
I am trying to create a custom Output Window for my software that is
I'm trying to get my head around custom events. I understand how to register
I'm trying to make a custom ContentControl that takes on the shape of a
I'm trying to create a custom template tag that only renders a block of
I have a custom DropDownList control, SDropDownList. I am trying to register and fire
Just trying to see if I can add a definition/register AJAX web service explicitly

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.