反序列化时无法在同一项目和DLL中找到程序集 [英] Unable to find assembly within same project and DLL while deserialize
问题描述
我序列化一个单一类中不同类列表的数量.序列化功能正常工作,但 反序列化功能无法正常工作.
I Serialize the number of different list of classes inside from one single class. Serialize function work properly but Deserialize function not working properly.
错误:无法找到程序集'SEPL.AutoDCRBIM,版本= 1.0.0.0,区域性=中性,PublicKeyToken =空'."
Error : " Unable to find assembly 'SEPL.AutoDCRBIM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'."
这两个功能都在同一项目中运行,而不是不同的项目.
Both functions are running in same project not different project.
序列化和反序列化功能都使用相同的程序集,该程序集是项目中的类文件.但没有运气.奇怪的是,序列化功能运行良好.它只是反序列化功能.我什至都放了两个功能
作为一个函数中的继续代码,再次序列化可以工作,但是反序列化则选择不工作.
Both serialize and deserialize functions are using the same assembly which is a class file in the project. but no luck. The thing which is weird is that the serialize function works well. it is just the deserialize function. I even put both functions
as a continues code in one function again serialize works but deserialize choose to not to work.
推荐答案
嗨Dhiraj Lotake,
Hi Dhiraj Lotake,
谢谢您在这里发布.
For the error message, you could refer to Deserialization exception: Unable to find assembly in SO. It has a good explanation.
这篇关于反序列化时无法在同一项目和DLL中找到程序集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!