带二进制格式反序列化的问题-带VS 2015的.NET 4更新? [英] Issue w/ deserialization of binary format - .NET 4 update w/ VS 2015?

查看:100
本文介绍了带二进制格式反序列化的问题-带VS 2015的.NET 4更新?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

到目前为止,我们已将Visual Studio 2010 Professional和.NET Framework 4用于我们的代码开发.最近,我为另一个项目安装了Visual Studio 2015.从那时起,我们(我和所有安装了VS 2015的同事也)遇到了问题 带有我们在VS 2010中开发的应用程序.当应用程序运行时,我们打开一个二进制格式的文件,现在得到一个错误,即成员"SeparatorsArray"不正确.找不到.它指的是方法System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize();

So far, we have used Visual Studio 2010 Professional and .NET framework 4 for our code development. Recently, I installed Visual Studio 2015 for another project. Since then, we (me and any colleague having installed VS 2015, too) have experienced issues w/ our applications developed in VS 2010. When the application runs, we open a file of binary format and now get the error that a member "SeparatorsArray" cannot be found. It refers to the method System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize();

是否已安装VS 2015对.NET Framework 4进行了任何更新?我们如何解决该问题?

Did any updates to the .NET framework 4 come w/ the installation of VS 2015? How could we fix the issue?

非常感谢您的任何建议!

Thanks a lot for any advice!

推荐答案

MoLiKaMu,

Hi MoLiKaMu,

您的意思是直接用VS2015打开VS2010项目吗?您能否将有此问题的示例项目提供给OneDrive,并在此处共享链接以帮助我们重现您的问题?

Do you mean open the VS2010 project with VS2015 directly? Could you please provide a sample project which has this problem to OneDrive and share the link here to help us to reproduce your problem?

如果直接使用VS2015打开解决方案,请使用Visual Studio 2015创建一个新的空白解决方案.然后将文件从VS2010解决方案逐个移动到新的空白解决方案.请不要将解决方案从2010年直接升级到2015年.因为那里 是VS2012和VS2013版本,这些版本的Visual Studio之间有很多区别.

If open the solution with VS2015 directly, please create a new blank solution with Visual Studio 2015. Then move the file from VS2010 solution to the new blank solution one by one. Please don't upgrade the solution from 2010 to 2015 directly. Because there are VS2012 and VS2013 version, there are many difference between these version of Visual Studio.

如果使用VS2010打开该解决方案,请按照上述步骤将其升级到VS2015.

If open the solution with VS2010, please upgrade it to VS2015 with above steps.

此外,我发现您有 在StackOverFlow 上发布此问题,然后有人建议您更改其他序列化格式.我认为该建议是合理的,您可以尝试一下.

In addition, I find you have post this problem on StackOverFlow and someone suggest you change other serialization format. I think the suggestion is reasonable, you can have a try.

最好的问候,
Weiwei

Best Regards,
Weiwei


这篇关于带二进制格式反序列化的问题-带VS 2015的.NET 4更新?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆