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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T20:35:40+00:00 2026-05-24T20:35:40+00:00

i have a client-server application which uses .NET Remoting communication. For authentication reasons i

  • 0

i have a client-server application which uses .NET Remoting communication. For authentication reasons i had to write a custom IClientChannelSink to insert a session cookie into the HTTP-requests.
On the server side i also wrote a custom IServerChannelSink to read some information the server needs from the HTTP-request headers.

The client side works fine, but on the server side i always get the following error:

System.ArgumentNullException was unhandled by user code Message=No
message was deserialized prior to calling the DispatchChannelSink.
Parameter name: requestMsg Source=mscorlib ParamName=requestMsg
StackTrace:
at
System.Runtime.Remoting.Channels.DispatchChannelSink.ProcessMessage(IServerChannelSinkStack
sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders,
Stream requestStream, IMessage& responseMsg, ITransportHeaders&
responseHeaders, Stream& responseStream)
at
MyAuthentication.MyServerChannelSink.ProcessMessage(IServerChannelSinkStack
sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders,
Stream requestStream, IMessage& responseMsg, ITransportHeaders&
responseHeaders, Stream& responseStream) in
C:\Dev\MyAuthentication\MyServerChannelSink.cs:line 82
at
System.Runtime.Remoting.Channels.BinaryServerFormatterSink.ProcessMessage(IServerChannelSinkStack
sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders,
Stream requestStream, IMessage& responseMsg, ITransportHeaders&
responseHeaders, Stream& responseStream)
at
System.Runtime.Remoting.Channels.Http.HttpServerTransportSink.ServiceRequest(Object
state)
at
System.Runtime.Remoting.Channels.SocketHandler.ProcessRequestNow()
InnerException:

My “ProcessMessage”-methodlooks as follows:

public ServerProcessing ProcessMessage(IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream, out IMessage responseMsg, out ITransportHeaders responseHeaders, out Stream responseStream)
{
    // Pre-processing before sending the message to the next sink in the chain
    object state = null;
    ProcessRequest(requestMsg, requestHeaders, ref requestStream, ref state);

    /* Call the next sink in the chain */
    sinkStack.Push(this, state);
    ServerProcessing serverProcessing = this.NextChannelSink.ProcessMessage(sinkStack, requestMsg, requestHeaders, requestStream, out responseMsg, out responseHeaders, out responseStream);

    // Processing from sink further in the chain has completed. Now do any post-processing before returning to the previous sink in the chain.
    ProcessResponse(null, responseHeaders, ref responseStream, state);

    return serverProcessing;
}

Would be great if anyone can tell me whats wrong.

  • 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-24T20:35:41+00:00Added an answer on May 24, 2026 at 8:35 pm

    I’ve solved my problem. Since i don’t use the channel sinks to do any serialization i also don’t want to handle the message deserialization by myself. The following implemention works fine:

    public ServerProcessing ProcessMessage(IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream, out IMessage responseMsg, out ITransportHeaders responseHeaders, out Stream responseStream)
    {
        // Pre-processing before sending the message to the next sink in the chain
        object state = null;
        ProcessRequest(requestMsg, requestHeaders, ref requestStream, ref state);
    
        ServerProcessing serverProcessing;
        if (requestMsg != null)
        {
            /* Call the next sink in the chain */
            sinkStack.Push(this, state);
            serverProcessing = this.NextChannelSink.ProcessMessage(sinkStack, requestMsg, requestHeaders, requestStream, out responseMsg, out responseHeaders, out responseStream);
            sinkStack.Pop(this);
        }
        else
        {
            responseMsg = null;
            responseHeaders = null;
            responseStream = null;
            serverProcessing = ServerProcessing.Complete;
        }
    
        // Processing from sink further in the chain has completed. Now do any post-processing before returning to the previous sink in the chain.
        ProcessResponse(null, responseHeaders, ref responseStream, state);
    
        return serverProcessing;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a client-server application that uses .net remoting. The clients are in a
I have a client/server application that communicates with .Net remoting. I need my clients
I have developed a Windows application in .NET which uses a SQL Server database
I want to create an application which will have a client and server components.
We have a client/server application with a rich client front end (in .Net) and
I have a client-server application written in Java using CORBA for the communication. The
I have a client/server style application which communicates using WCF which all works great.
I have a client server application that sends XML over TCP/IP from client to
I have a client/server application. One of the clients is a CLI. The CLI
I am adapting a little rmi client-server application. I have written several things :

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.