View Full Version : The input stream is not a valid binary format.
hvan1
November 10, 2007, 19:58:27
Hi,
I can't seem to find a relieving answer to my question. I'm very happy to own a .Net Server license since a couple of days, but can't get it to work. When I try to open or save a file I get the following error:
"The input stream is not a valid binary format. The starting contents (in bytes) are: 53-79-73-74-65-6D-2E-52-75-6E-74-69-6D-65-2E-52-65 ."
I don't do anything crazy, just use your Browserweb Sample and try to open/save a file.
My system looks like this:
Vista Premium, Visual Studio 2005, IIS 7.
While there is an other open post which suggested to install a patch of MS, I even downloaded Framework 1.1 / sp1 and the patch. Still doesn't work.
Could someone please help?
Thanks,
Harold
Björn Meyer
November 12, 2007, 10:56:25
Hello Harold
In most cases, the BrowserBin files are not deployed. Which files do you have in your BrowserBin and your Bin folder?
hvan1
November 12, 2007, 13:54:03
Hi Björn,
First, thanks for your quick response.
My browserbin contains the following files:
Browserapplication.dll
Browserapplication.dll.config
Browserapplication.pdb
Browserapplication.xml
My bin:
App_Web_54btf2xb.dll
Regards,
Harold
hvan1
November 12, 2007, 20:40:40
Oh yes, the exceptiontext says following:
System.Runtime.Serialization.SerializationExceptio n: The input stream is not a valid binary format.
Server stack trace:
bij System.Runtime.Serialization.Formatters.Binary.Ser ializationHeaderRecord.Read(__BinaryParser input)
bij System.Runtime.Serialization.Formatters.Binary.__B inaryParser.ReadSerializationHeaderRecord()
bij System.Runtime.Serialization.Formatters.Binary.__B inaryParser.Run()
bij System.Runtime.Serialization.Formatters.Binary.Obj ectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
bij System.Runtime.Serialization.Formatters.Binary.Bin aryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
bij System.Runtime.Remoting.Channels.CoreChannel.Deser ializeBinaryResponseMessage(Stream inputStream, IMethodCallMessage reqMsg, Boolean bStrictBinding)
bij System.Runtime.Remoting.Channels.BinaryClientForma tterSink.SyncProcessMessage(IMessage msg)
Exception rethrown at [0]:
bij TXTextControl.BrowserTextControl.Load(String serverPath, String applicationName, StreamType streamType, LoadSettings loadSettings)
bij BrowserApplication.BrowserAppControl.mnuBesOpen_Cl ick(Object sender, EventArgs e)
bij DevComponents.DotNetBar.BaseItem.RaiseClick(eEvent Source source)
bij DevComponents.DotNetBar.BaseItem.InternalMouseUp(M ouseEventArgs objArg)
bij DevComponents.DotNetBar.PopupItem.InternalMouseUp( MouseEventArgs objArg)
bij DevComponents.DotNetBar.ButtonItem.InternalMouseUp (MouseEventArgs objArg)
bij DevComponents.DotNetBar.MenuPanel.OnMouseUp(MouseE ventArgs e)
bij System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
bij System.Windows.Forms.Control.WndProc(Message& m)
bij DevComponents.DotNetBar.MenuPanel.WndProc(Message& m)
bij System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
bij System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
bij System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Björn Meyer
November 13, 2007, 09:51:45
There are missing files in both folders. Please refer the documentation to learn which files must be copied.
http://www.textcontrol.com/support/documentation/html/dotnet/n_explorer_aspnet_2005.installing.htm
and
http://www.textcontrol.com/support/documentation/html/dotnet/n_explorer_aspnet_2005.starting.htm
hvan1
November 13, 2007, 12:56:06
Hi Björn,
Thanks to your described steps I went through the whole installation process again of installing the application under IIS. Finally I had to name the application in IIS and then it came to me...
Problem solved (wrong application name in the load/save method). This is also how you can reproduce this error (and also the error of Roel - rknol): Put in a wrong applicationname, recompile, clean up the global assembly cache (gacutil /cdl) and there it is...
Thanks for your great support!! :)
Regards,
Harold
anand@cssi
September 27, 2008, 17:42:01
copy following code in web.config in the "WEB.CONFIG SETTING" text below
<configuration>
<configSections>
</configSections>
WEB.CONFIG SETTING
</configuration>
and see the magic... (well, I struggled for at least four hours when my buddy Bjoren was not available to help me on weekend. LOL )
<system.runtime.remoting>
<application>
<service>
<activated type="TXTextControl.ServerTextControl, TXTextControl"/>
</service>
<channels>
<channel ref="http">
<serverProviders>
<provider ref="wsdl"/>
<formatter ref="binary" typeFilterLevel="Full"/>
</serverProviders>
</channel>
</channels>
</application>
<customErrors mode="off"/>
</system.runtime.remoting>