When calling _nextSink.ProcessMessage(...) from a custom server transport
sink i am developing i get a ReturnMessage that contains an exception with
the following text:

"Error: Server encountered an internal error.  For more information, turn
on customErrors in the server's .config file"

>From what i have been able to find on the web, the "customError" element
is ignored by remoting architecture at the moment so no luck finding a
clue as to what i going wrong.

Has anyone seen this before?  I've based my channel on some really nice
examples: FileChannel (from McLean, Naftel, and Willams book) and
SMTPChannel (from Rammer's book).  The concepts are simple enough, but i
am missing something... i just have no idea what.

I've checked that the (request) headers and stream are reconstructed
correctly on the server side of the channel and i have the correct objects
in the sink-chain.

class MSMQServerTransportSink :
  BaseChannelSinkWithProperties,
  IServerChannelSink
{
  ...
  public void ListenAndProcessMessage()
    {
      while(true)
      {
        MSMQChannelData requestData = WaitAndGetRequest();

        ITransportHeaders requestHeaders = requestData.Headers;
        requestHeaders[CommonTransportKeys.RequestUri] = requestData.URI;
        System.IO.Stream requestStream = requestData.Stream;
        requestHeaders["__RequestVerb"] = null;

        ServerChannelSinkStack stack = new ServerChannelSinkStack();
        stack.Push(this, null);

        IMessage responseMessage;
        ITransportHeaders responseHeaders;
        System.IO.Stream responseStream;

        // forward the call to the next sink
        ServerProcessing operation = _nextSink.ProcessMessage(
          stack, null, requestHeaders, requestStream,
          out responseMessage, out responseHeaders, out responseStream);

        /*
           the return message contains an
           exception with the aforementioned
           message-string
        */

        ...
      }
    }
}

===================================
This list is hosted by DevelopMentor�  http://www.develop.com
NEW! ASP.NET courses you may be interested in:

2 Days of ASP.NET, 29 Sept 2003, in Redmond
http://www.develop.com/courses/2daspdotnet

Guerrilla ASP.NET, 13 Oct 2003, in Boston
http://www.develop.com/courses/gaspdotnet

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to