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

  • Home
  • SEARCH
  • 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 3933060
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T23:33:31+00:00 2026-05-19T23:33:31+00:00

Im trying to write a small web application for forwarding requests to my page

  • 0

Im trying to write a small web application for forwarding requests to my page to the new pages on my web site. First off im implementing a IHttpHandler and in the ProcessRequest method i simple want to print out the requesting page, my conde looks like this:

public class RedirectHandler : IHttpHandler
    {
        public bool IsReusable
        {
            get { return true; }
        }

        public void ProcessRequest(HttpContext context)
        {
            context.Response.Write(context.Request.Path);
        }
    }

I have registered in the web.config and have a problem with testing the handler. I start it through visual studio, it is just listing my files. I then from a browser request a file, and expects to see the name in the browser, but an exception that the page is not found is thrown. I have deleted all other .aspx page so the only “page” i have is my http handler. Could anyone point me in the right direction?

Edit
Configuration settings (web.config)

<system.webServer>
     <modules runAllManagedModulesForAllRequests="true"/>
    <handlers>
      <add name="RedirectHandler" resourceType="Unspecified" verb="*" path="*.html" type="Jeeves.RedirectHandler"/>
    </handlers>
  </system.webServer>
  • 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-19T23:33:32+00:00Added an answer on May 19, 2026 at 11:33 pm

    The entries in the system.webServer/handlers configuration element are only effective if you are running IIS 7 (in Integrated mode). Either specify Use Local IIS Web Server in the Web section of the project’s properties (if you have IIS7) or use the system.web/httpHandlers element instead:

    <system.web>
       <httpHandlers>
           <add  verb="*" path="*.html" type="Jeeves.RedirectHandler"/>
       </httpHandlers>
    </system.web>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am just trying to write a small web page that can parse some
I'm trying to write a small wsgi application which will put some objects to
I am trying to write a small web tool which takes an Excel file,
I am trying to write some unit tests for a small web service written
I am trying to write a small test application that uses the UMLS UTS
I’m trying to create an small Web Proxy in C. First, I’m trying to
I'm trying to write a small class library for a C++ course. I was
I'm trying to write a small script to change the current directory to my
I'm trying to write a small app that monitors how much power is left
I'm trying to create a small application within CRM in the ISV folder. I

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.