473,394 Members | 1,761 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

No message was deserialized prior to calling the DispatatchChannelSink

Hi all,

I am working in dotnet remoting using dotnet framework 2.0 in windows xp.
I am hosting the remote object in iis using http channel and binary formatter and registering the object in web.config as given below.

Servide-side config file:

<configuration>
<system.runtime.remoting>
<application>
<channels>
<channel ref="http">
<serverProviders>
<provider ref="wsdl"/>
<formatter ref="binary" typeFilterLevel="Full"/>
<!-- <formatter ref="soap" typeFilterLevel="Full"/> -->
</serverProviders>
<clientProviders>
<formatter ref="binary"/>
</clientProviders>
</channel>
</channels>
<service>
<wellknown mode="SingleCall" type="namespace.classname,assemblyname" objectUri="uriname.rem" />
</service>
</application>
</system.runtime.remoting>
</configuration>

and i am using the client as a web application in the same machine.Whenever i call the remote object from the client. It is giving me an exception as follows.

RemotingException System.Runtime.Remoting.RemotingException: System.ArgumentNullException: No message was deserialized prior to calling the DispatchChannelSink. Parameter name: requestMsg at System.Runtime.Remoting.Channels.DispatchChannelSi nk.ProcessMessage(IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream, IMessage& responseMsg, ITransportHeaders& responseHeaders, Stream& responseStream) at System.Runtime.Remoting.Channels.BinaryServerForma tterSink.ProcessMessage(IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream, IMessage& responseMsg, ITransportHeaders& responseHeaders, Stream& responseStream) at System.Runtime.Remoting.MetadataServices.SdlChanne lSink.ProcessMessage(IServerChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream requestStream, IMessage& responseMsg, ITransportHeaders& responseHeaders, Stream& responseStream) at System.Runtime.Remoting.Channels.Http.HttpHandlerT ransportSink.HandleRequest(HttpContext context) at System.Runtime.Remoting.Channels.Http.HttpRemoting Handler.InternalProcessRequest(HttpContext context)

If i use formatter as SOAP it is working fine. Can anyone point out what is wrong in config file.

Client side config file:

<configuration>
<system.runtime.remoting>
<application>
<channels>
<channel ref="http" >
<clientProviders>
<formatter ref="binary"/>
</clientProviders>
<serverProviders>
<formatter ref="binary" typeFilterLevel="Full"/>
</serverProviders>
</channel>
</channels>
</application>
</system.runtime.remoting>
</configuration>
Oct 18 '07 #1
1 7834
debasisdas
8,127 Expert 4TB
Question move to .NET Forum.
Oct 18 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: GerritM | last post by:
ZDnet features an article about the had patent at AltNet http://news.zdnet.com/2100-9588_22-5534087.html . Apparantly this issue plays already for some time, now the p2p companies are threatened,...
1
by: Fred Gravel | last post by:
I have a Windows app that I have installed on 3 client machines (all win2k) thatreturn an un-handled error message when starting up. I have placed 'Try/Catch/Finally' blocks in the 'sub main' and...
0
by: Don | last post by:
I have deserialized XML back into an object, so now... How do I get the object instance back into a dataset? The same XML file(before deserializing) can be put into the dataset when read as a...
7
by: Paul Bromley | last post by:
I am using mailto to open the default e-mail program on the users machine using the following function code snippet that I found on th web.:- Public Function OpenEmail(ByVal EmailAddress As...
1
by: MR | last post by:
is there a way to view the SOAP message in a client after it is serialized (before it is sent out) or deserialized (after a reply is received)? i am using the proxy that is created by VS.NET2003...
0
by: UJ | last post by:
I'm trying to do some remoting and I'm getting the following error when I register a callback function: 'Type System.DelegateSerializationHolder and the types derived from it (such as...
0
by: news.microsoft.com | last post by:
Hi! I have developed both a Web Service and a client application, and they works fine. All classes used in the Web Service interface are declared in an assembly named Entities, that is...
2
by: =?Utf-8?B?RmFicmljaW8gRmVycmVpcmE=?= | last post by:
Hi, I'm facing an odd problem when consuming some web services in .Net. After call a web method, the response SOAP envelope isn't being deserialized properly. In fact, all href tags are not...
4
by: roynevo | last post by:
Hi, I'm trying to deserialize an object on the context of a remoting call (RPC). The deserialization seem to work fine, however when I'm casting the result to the relevant class I get an...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.