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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T09:33:20+00:00 2026-06-12T09:33:20+00:00

I have a server/client that uses NetTcp duplex channel and I’m trying to figure

  • 0

I have a server/client that uses NetTcp duplex channel and I’m trying to figure out how much work is required to run it under mono (v2.10.8).

Can someone tell me how to correctly throw a FaultException to a client that runs under mono?? Or if this isn’t fully supported?

The contract is defined as:

[OperationContract(IsInitiating = true)]
[FaultContract(typeof(IOException))] 
string ConnectWithFault(string clientVersion, string workstation)

and the server side method will always generate the fault for testing purposes:

public string ConnectWithFault(string clientVersion, string workstation)
{
  IOException ioe = new IOException("Testing Fault Contract");
  throw new FaultException<IOException>(ioe, new FaultReason(ioe.Message), new FaultCode("Sender")); 

  return "Should Never Reach Here!";
}

Everything works fine when I run the client normally in windowns, but when I run the client in mono command prompt in Windows, the FaultException does seem to come through to the client, but I’m not able to catch it properly. Or is there an internal mono error when it’s trying to catch the FaultException on the client side?? I’ve tried to catch is in a few different guises:

public void TestConnectWithFault()
{
  Console.WriteLine("Client->TestConnectWithFault() +");
  try
  {
    string response = RemoteSessionChannel.ConnectWithFault("client1.0", "MY-PC");
    Console.WriteLine("**** DuplexClient->Connect Response: {0}", response);
  }
  catch (FaultException<IOException> ioe)
  {
    Console.WriteLine("Connect failed. (IOException): {0}", ioe.ToString());
  }
  catch (FaultException fe)
  {
    Console.WriteLine("Connect failed. (FaultException): {0}", fe.ToString());
  }
  catch (Exception ex)
  {
    Console.WriteLine("Connect failed. (Exception): {0}", ex.ToString());
  }
  Console.WriteLine("Client->TestConnectWithFault() -");
}

But I always just get the following output in the client console and the client hangs:

Client->TestConnectWithFault() +

**System.ServiceModel.FaultException: Testing Fault Contract
  at System.ServiceModel.MonoInternal.DuplexClientRuntimeChannel.ProcessInputCor
e (IInputChannel input, System.ServiceModel.Channels.Message message) [0x00000]
in <filename unknown>:0
  at System.ServiceModel.MonoInternal.DuplexClientRuntimeChannel.ProcessInput (I
InputChannel input, System.ServiceModel.Channels.Message message) [0x00000] in <
filename unknown>:0**

So it looks like the exception is coming across to the client, but isn’t getting picked up by any of the catch blocks, or have I not got this right?

  • 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-12T09:33:21+00:00Added an answer on June 12, 2026 at 9:33 am

    There has been bug #7177 that I fixed in Mono last week.

    I quickly tested this and it’s working fine now.

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

Sidebar

Related Questions

I have a client and a server app on Android (that uses ZeroC -
Background: We have a client/server application that uses a persistent connection to the server.
I have a Java client that uses HttpClient to connect to a server and
I have a multithread server that uses one MSSQL which each client should have
we have a client/server app (Flex and Java) that uses BlazeDS to do remoting.
When I have a TCP connection that uses packets.. (Server / Client Application) Should
I have a client-server program that uses sockets to transfer information in a stateful
I have a client-server application that uses .net remoting. The clients are in a
I have a client Server app that uses .NET Remoting. I have a helper
I have a simple client server apps that uses WCF (netTcpBinding) when i'm launching

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.