Solution for "De-serialization exception: Unable to find assembly xxxxx"
2013-08-22 15:03
393 查看
public void DeSerialize() { BinaryFormatter formatter = new BinaryFormatter(); AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(OnResolveAssembly); formatter.Deserialize(stream); AppDomain.CurrentDomain.AssemblyResolve -= new ResolveEventHandler(OnResolveAssembly); } private Assembly OnResolveAssembly(object sender, ResolveEventArgs args) { Assembly assembly = System.Reflection.Assembly.Load(args.Name); if (assembly != null) { return assembly; } return Assembly.GetExecutingAssembly(); }
相关文章推荐
- Solution for "De-serialization exception: Unable to find assembly xxxxx"
- Solution for "De-serialization exception: Unable to find assembly xxxxx"
- "BEA-000450" "Unable to find internal data record for the socket"
- Required content for platform tvOS Simulator is missing. unable to find utility "git", not a develop
- Unable to find a value for "tStatus" in object of class org.entity.Passport using operator "."
- Deserialize causes exception "Unable to find assembly"
- pod install 出现 Unable to find a specification for `xxxxx` 解决方案
- Unable to find a value for "字段名" in object of class java.lang.String using operator "."
- Unable to find a value for "dwmc" in object of class "java.lang.String" using operator "." (null
- Unable to find a value for "Sex" in object of class ...错误
- 纠错: git push error “fatal: Unable to find remote helper for 'https'"
- Unable to find a specification for `xxxxx` 的问题
- 在cocoapods更新出现提示 Unable to find a specification for `xxxxx` Pod的目录清理一下就行了
- Unable to find a 'userdata.img' file for ABI armeabi to copy into the AVD folder
- [转]【android studio】解决layout预览出现Rendering Problems Exception Unable to find the layout for Action Bar.
- hadoop 报错:Unable to find SASL server implementation for
- Solution:Unable to install CSD for WebSphere® MQ v5.3. Files in use!
- PHP的readfile函数和file_get_contents函数错误: Unable to find the wrapper "https"
- 解决使用Struts2的s:textfield标签出现Unable to find setter method for attribute: style的问题
- 使用samba时出现"Failed to find entry for user..."