Re: The input stream is not a valid binary format

Tech-Archive recommends: Speed Up your PC by fixing your registry



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>



.



Relevant Pages

  • The input stream is not a valid binary format
    ... If I run remote server as executable (no host in IIS) I have no problem. ... Client (WindowsForms) ...
    (microsoft.public.dotnet.languages.csharp)
  • The input stream is not a valid binary format
    ... If I run remote server as executable (no host in IIS) I have no problem. ... Client (WindowsForms) ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: Binary Formatter on IIS
    ... Check your client configuration to make sure it is set up to use the binary ... Setting the formatter to binary on the server doesn't ... disable the soap formatter - it just enables the binary. ... > I have a problem setting binary formatting on IIS (wellknown, SAO, ...
    (microsoft.public.dotnet.framework.remoting)
  • IIS 5.0 IN A DOMAIN?
    ... > I am contacting this list, because of the focus on security more than ... > Here are the client goals: ... > HAVE THE IIS AND SQL BOXES JOIN A SPECIAL DOMAIN DESIGNED JUST FOR THESE ... > WIN2KDOMAIN2 DOMAIN CONTROLLERNEEDED TO SUPPORT THIS? ...
    (Focus-Microsoft)
  • Re: Problem with connect computer wizard
    ... You mentioned that you're using Anonymous access with Administrator ... Open ConnectComputer properties in IIS. ... And there is only the DNS server be configured on client ...
    (microsoft.public.windows.server.sbs)