Re: The input stream is not a valid binary format
- From: "Joel Lyons" <joellNO_SPAM@xxxxxxxxxxx>
- Date: Fri, 12 Jan 2007 17:03:49 -0700
Phil is right, IIS is sending you back an html error page and the binary
formatter can't handle it. See:
http://www.dotnetconsult.co.uk/weblog/PermaLink.aspx/827189d3-ee0e-444f-b01d-bf9ce9f70f5c
(we use that solution and it works great - no sniffer required!)
Joel Lyons
"Tommaso Caldarola" <ilbecchino@xxxxxxxxxxxx> wrote in message
news:45a7938a$1_2@xxxxxxxxxxxxxxx
I got the following exception
System.Runtime.Serialization.SerializationException: The input stream is
not a valid binary format. The starting contents (in bytes) are:
53-79-73-74-65-6D-2E-57-65-62-2E-48-74-74-70-45-78 ... Server stack trace:
at
System.Runtime.Serialization.Formatters.Binary.SerializationHeaderRecord.Read(__BinaryParser
input)... etc.
when I try to transfer a MarshalByValue object.
If I run remote server as executable (no host in IIS) I have no problem.
Scenario:
IIS 5.0, .Net 2.0
Remote object hosted in IIS
Client (WindowsForms)
Any suggest?
I post client/server config file.
----------------------
web.config
<system.runtime.remoting>
<application>
<channels>
<channel ref="http" useDefaultCredentials="false">
<serverProviders>
<formatter ref="binary" typeFilterLevel="Full" />
</serverProviders>
</channel>
</channels>
<service>
<wellknown
mode="Singleton"
type="xxx.yyy, xxx"
objectUri="ApplicationServer.rem" />
</service>
</application>
</system.runtime.remoting>
--------------------
client.config
<system.runtime.remoting>
<application>
<channels>
<channel ref="http" useDefaultCredentials="false">
<clientProviders>
<formatter ref="binary"/>
</clientProviders>
<serverProviders>
<formatter ref="binary" typeFilterLevel="Full"/>
</serverProviders>
</channel>
</channels>
</application>
</system.runtime.remoting>
.
- Follow-Ups:
- Re: The input stream is not a valid binary format
- From: Tommaso Caldarola
- Re: The input stream is not a valid binary format
- References:
- The input stream is not a valid binary format
- From: Tommaso Caldarola
- The input stream is not a valid binary format
- Prev by Date: Re: The input stream is not a valid binary format
- Next by Date: Re: The input stream is not a valid binary format
- Previous by thread: Re: The input stream is not a valid binary format
- Next by thread: Re: The input stream is not a valid binary format
- Index(es):
Relevant Pages
|