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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T08:01:47+00:00 2026-06-12T08:01:47+00:00

I have been able to do this before with a prototype project but because

  • 0

I have been able to do this before with a prototype project but because now it is going into “implementation” with other things included in the project, there are some problems I am having in terms of WCF being able to pick up messages from the MSMQ.

The solution is structured that we have “teams”. Each project represents this (to some extent).
Teams can only access the projects they require.

So:

IncomingMessaging project (references “Messages” project)

This contains classes which are concrete classes which derive from base classes of its own type (in “Messages” project). The base classes are all in “Messages” project. Example:

FirstReport -> FirstReportBase
SecondReport -> SecondReportBase
ThirdReport -> ThirdReportBase

Each of the base classes derive from “MainBase”. This also resides in “Messages” project.
The MainBase has been decorated with the KnownTypes attribute and has all the base known types. (FirstReportBase, SecondReportBase etc…)

I then have a WCFImplementation.Messages project, which references “Messages” and the “IncomingMessaging” project.
The WCFImplementation.Messages project has a concrete class which is used for WCF binding to MSMQ the actual implementation like so:

[ServiceBehavior(ConcurrencyMode = ConcurrencyMode.Multiple)]
public class InboundMessagingService : IInboundMessagingService
{
   [OperationBehavior(TransactionScopeRequired = true)]
   public void ProcessIncomingMessage(MsmqMessage<MainBase> msg) { ... }
}

The IInboundMessagingService has the ServiceContract attribute and also has the ServiceKnownType attributes for all the base types

with me so far?

I then have a simple Console app project to host the service. Note at this point I have send a FirstReport message to the queue:

FirstReport fr = new FirstReport(....);

The console app is run and I get a faulted service. It is unable to read the message on the queue! (poison message)

What am I missing?
Does the Interface for the IInboundMessagingService have to be decorated with the concrete classes? Can I not just use base classes?

I got it to work with the prototype before as I have both the concrete (FirstReport) and base classes (FirstReportBase) decorated as the service known types in the interface but this was a “loose” type project structure

  • 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-06-12T08:01:49+00:00Added an answer on June 12, 2026 at 8:01 am

    Problem seemed to have been that the objects and subobjects etc… needed all to be marked with the DataContract attributes.
    Then the main concrete/base class should have knowntypes attributes decorated with the known types which are the subclasses of this base class.

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

Sidebar

Related Questions

I have been using this as a reference, but not able to accomplish exactly
I am sure this might have been asked before but I've been pulling my
I have this excel file which I have been able to write the data
I've been reading similar questions to this issue and have been able to get
I have not been able to find any definitive answers to this question: Can
So this is something that I have not been able to find any documentation
I haven't been able to find anything for a situation like this. I have
I have been looking around for a while now and I'm not able to
In other sites I've worked on, I have been able to easily generate search
I know that similar questions have been asked before but I have not been

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.