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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T19:30:48+00:00 2026-05-11T19:30:48+00:00

Is there a good resource for the rules around how the httpHandler path property

  • 0

Is there a good resource for the rules around how the httpHandler path property is used?

I am seeing mixed results for when my handler is called in different environments, so let me explain…

I want to allow for a URL such as:

http://mysite/_layouts/myCompany/rest/myservice.svc/param1/param2

I would like to invoke my handler only under “myCompany” folder/link so I put the following web.config file in the corresponding folder so as not to affect the rest of the application. This works on some machines, but not on others:

<configuration>
    <system.web>
        <httpHandlers>
            <add verb="*" path="myservice.svc" type="..." validate="false"/>
        </httpHandlers>
    </system.web>
</configuration>

Now, I’ve got to admit that I was a little surprised that this worked since it basically had to find the “myservice.svc” out of the “rest/myservice.svc/param1/param2” relative path, but it did find it – but only on two of my three test machines. So, I tried the following on the machine that it failed on:

<add verb"*" path="rest/myservice.svc/*/*" type="..." validate="false"/>

This worked a few times and is now not working. Being the logical type it really bothers me that after a bit if diligence I cannot explain this, but I haven’t been able to get it to work again. See also this similar Stack Overflow question.

Note that the following does work, but it makes me resort to query string variables to provide parameters which is not ideal.

<add verb"*" path="rest/myservice.svc/*" type="..." validate="false"/>

I looked into the parent web.config files along the way on two machines that give different results to see how they define any httpHandlers and nothing popped out as a problem.

So, I’m looking for an understanding of how this path is utilized.

For what it’s worth, this is running in a SharePoint site (hence the “sharepoint” tag on this question) and I am using this to provide REST (simple “text/xml”) instead of SOAP. I do not want to use full blown WCF because that rocks the boat a little too much many installations of SharePoint so I’m using an HTTP Handler instead.

In addition, the error I’m getting is the following:

virtualPath   at System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result) 
   at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) 
   at System.ServiceModel.Activation.HostedHttpRequestAsyncResult.ExecuteSynchronous(HttpApplication context, Boolean flowContext) 
   at System.ServiceModel.Activation.HttpHandler.ProcessRequest(HttpContext context) 
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() 
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) 
  • 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-11T19:30:48+00:00Added an answer on May 11, 2026 at 7:30 pm

    An answer is still welcome, but here I found a simple workaround. So simple it bothers me that I didn’t think of it before…

    Since I own the folder/url from a certain point, I can just make sure that everything goes through my handler:

    <add verb"*" path="*" type="..." validate="false"/>
    

    How simple can it get :-S.

    A side benefit of this is that I can better report an error for improper URLs. I may decide to use a handler factory instead of a handler; then the only change is the type that is specified.

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

Sidebar

Ask A Question

Stats

  • Questions 106k
  • Answers 106k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Check out this blog post ... Where did these extra… May 11, 2026 at 8:53 pm
  • Editorial Team
    Editorial Team added an answer you have to use embedded fonts for your labels. As… May 11, 2026 at 8:53 pm
  • Editorial Team
    Editorial Team added an answer Have you tried putting quotes around ul#portfolio li ? The… May 11, 2026 at 8:53 pm

Related Questions

I am working on a background program that will be running for a long
I'm working on performance tuning my SQL Server 2008 database and am using the
I was using a CASE called MAGIC for a system I'm developing, I've never
I'm working on a method that accepts an expression tree as a parameter, along
Is anyone aware of a good resource online for detailed information on the use

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.