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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:08:44+00:00 2026-05-28T00:08:44+00:00

I am trying to implement a custom endpoint/operation extension in my WCF service. I

  • 0

I am trying to implement a custom endpoint/operation extension in my WCF service. I have wired up my custom extension in the websconfig so that I can decorate my service & and operations with an attribute. However after doing so I get the following error:

The message with To ‘http://localhost:1605/Graph.svc/Triples/vbid/abk9185/0/en-us’ cannot be processed at the receiver, due to an AddressFilter mismatch at the EndpointDispatcher. Check that the sender and receiver’s EndpointAddresses agree.

I have done a lot of searching but I cannot figure out what this error means or how to fix it. Can someone help?

This is the service that I am ‘injecting’ my endpoint and operation behaviors onto:

<service name="Services.Graph" behaviorConfiguration="Services.DefaultBehavior">
    <endpoint address="" binding="webHttpBinding" contract="Services.IGraphService" behaviorConfiguration="corsMessageInspection"
 bindingConfiguration="LargeMessageBinding" bindingNamespace="http://icp.myorg.org">
    </endpoint>
    <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
  </service>

Here is my endpoint and service behavior configuration:

<endpointBehaviors>
    <behavior name="web">
      <webHttp />
    </behavior>        
    <behavior name="corsMessageInspection">
      <endpointMessageInspector />
    </behavior>        
  </endpointBehaviors>

  <serviceBehaviors>
    <behavior name="Services.DefaultBehavior">
      <serviceMetadata httpGetEnabled="true" />
      <serviceDebug includeExceptionDetailInFaults="true" />          
    </behavior>
    <behavior name="">
      <serviceMetadata httpGetEnabled="true" />
      <serviceDebug includeExceptionDetailInFaults="false" />
    </behavior>
  </serviceBehaviors>

Here is my custom endpoint/operation extension configuration:

<extensions>
  <behaviorExtensions>
    <add name="endpointMessageInspector" type="org.myorg.wcf.cors.CorsEndPointExtensionElement, org.myorg.wcf.cors, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"/>
  </behaviorExtensions>
</extensions>

and finally here is an example of what my service contract looks like:

 [ServiceContract(Namespace = "http://icp.myorg.org")]
[CorsBehavior]
public interface IGraphService
{
    [OperationContract]
    [CorsBehavior]
    [WebInvoke(Method = "*", UriTemplate = "Triples/{library}/{subjectLocalPart}/{depth}/{languageCode}")]
    GraphNode ReadTriple(string library, string subjectLocalPart, string depth, string languageCode);

“CorsBehavior” is my custom attribute which implements both IEndPointBehavior and IOperationBehavior.

  • 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-28T00:08:45+00:00Added an answer on May 28, 2026 at 12:08 am

    If you want the [WebInvoke] attribute to be honored, then you need to add the WebHttpBehavior (<webHttp/>) to your endpoint behavior as well. Change your behavior referenced by the endpoint (corsMessageInspection) to have both the webHttp behavior and your custom one:

    <endpointBehaviors>
      <behavior name="corsMessageInspection">
        <webHttp />
        <endpointMessageInspector />
      </behavior>
    </endpointBehaviors>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to implement a custom log4net logger/logmanager so that I can add a
I'm trying to implement a custom validation annotation in Seam. We have a list
I am trying to implement a Custom HttpHandler (for the first time), I have
I'm trying to implement a custom combobox options popup, so that near each option
I'm trying to implement custom suggestions for qsb. I have added CREATE TABLE IF
I'm trying to implement a custom class for dataannotations that retrieves error messages from
I'm trying to implement a custom TrackingParticipant for WF 4. I can write the
I am trying to implement a custom profile class in C# that inherits System.Web.Profile.ProfileBase.
I am trying to setup a WCF Data Service to use my custom UserNamePasswordValidator
I'm trying to implement a custom UISlider (subclass of UISlider), that behaves in a

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.