![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
System.Runtime.Serialization.SerializationExceptio n: 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.Ser ializationHeaderRecord.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) |
#3
| |||
| |||
|
|
Well, if you translate these hexadecimal values back into readible characters, you get ... "System.Web.HttpEx" ... which looks the start of something nasty coming out of IIS. Sadly, I've no idea what, though. |
#4
| |||
| |||
|
|
I got the following exception System.Runtime.Serialization.SerializationExceptio n: 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.Ser ializationHeaderRecord.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 |
#5
| |||
| |||
|
|
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/weblo...d-bf9ce9f70f5c (we use that solution and it works great - no sniffer required!) |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |