That remoting ignore's customErrors tag is in fact WRONG! People may have tried it but put the tag in the wrong place. It should be like this
<configuration> <system.runtime.remoting> <customErrors mode="off" /> HTH Chris > -----Original Message----- > From: Brant Fallin [mailto:[EMAIL PROTECTED] > Sent: Saturday, 23 August 2003 12:56 AM > To: [EMAIL PROTECTED] > Subject: [ADVANCED-DOTNET] Custom ServerTransportSink > > > 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(r) 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 > =================================== 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
