The input stream is not a valid binary format

今天日志中出了这样一个奇怪的异常

The input stream is not a valid binary format. The starting contents (in bytes) are: 1F-8B-08-00-00-00-00-00-04-00-ED-BD-07-60-1C-49-96 ...
   at System.Runtime.Serialization.Formatters.Binary.SerializationHeaderRecord.Read(__BinaryParser input)
   at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadSerializationHeaderRecord()
   at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()
   at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
   at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
   at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, IMethodCallMessage methodCallMessage)
   at BBS.Caching.StringObjectConverter.ConvertFromBase64String(String str) in D:\svn\wzkf\web_sns\bbs2010\src\BBS\Caching\StringObjectConverter.cs:line 74

查了半天原因未找到哪儿有不合适的地方,于是google了一番,发现了这个帖子。这位哥们解决这个问题的办法居然是重新编译一下解决方案;将信将疑的我也做了一下重新编译,更新程序之后居然真的不出问题了。

怪哉 !!!

posted @ 2010-06-23 16:22  玉开  阅读(3921)  评论(0编辑  收藏  举报