VS 2010 Designer错误:无法将类型xxx.yyy.zzz []转换为类型xxx.yyy.zzz [](是的,它是同一类型) [英] VS 2010 Designer error: can not convert type xxx.yyy.zzz[] to type xxx.yyy.zzz[] (yes, it's the same type)

查看:163
本文介绍了VS 2010 Designer错误:无法将类型xxx.yyy.zzz []转换为类型xxx.yyy.zzz [](是的,它是同一类型)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家早上好,
我在VS 2010 Designer中遇到问题.
我只是在检查内容并尝试打开Designer-View,该视图通常会向我显示该表单,但是现在出现错误:
无法将xxx.yyy.zzz []类型转换为xxx.yyy.zzz []

我检查了三遍,确实是同一类型.

我知道设计器中的错误,但是我无法追踪这个错误(完整的错误消息在本文结尾)

任何在哪里检查和检查什么的想法...不幸的是没有行号...很不幸;)

在此先感谢您,祝您度过愉快的一天
安迪

错误消息:

Good morning all,
I am facing a problem in my VS 2010 Designer.
I was just checking something and tried to open the Designer-View which normally shows me the form, but now it comes up with an error:
can not convert type xxx.yyy.zzz[] to type xxx.yyy.zzz[]

I triple checked and it is indeed the same type.

I know about errors in designer but this one I can not track down (the complete errormessage is at the end of this post)

Any ideas where to check and what to check... no line-numbers with the error... unfortunately ;)

thanks in advance and have a nice day
Andy

Error-Message:

bei System.RuntimeType.TryChangeType(Object value, Binder binder, CultureInfo culture, Boolean needsSpecialCast)
bei System.RuntimeType.CheckValue(Object value, Binder binder, CultureInfo culture, BindingFlags invokeAttr)
bei System.Reflection.RtFieldInfo.InternalSetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, CultureInfo culture, Boolean doVisibilityCheck, Boolean doCheckConsistency)
bei System.Runtime.Serialization.FormatterServices.SerializationSetValue(MemberInfo fi, Object target, Object value)
bei System.Runtime.Serialization.ObjectManager.CompleteObject(ObjectHolder holder, Boolean bObjectFullyComplete)
bei System.Runtime.Serialization.ObjectManager.DoNewlyRegisteredObjectFixups(ObjectHolder holder)
bei System.Runtime.Serialization.ObjectManager.RegisterObject(Object obj, Int64 objectID, SerializationInfo info, Int64 idOfContainingObj, MemberInfo member, Int32[] arrayIndex)
bei System.Runtime.Serialization.Formatters.Binary.ObjectReader.RegisterObject(Object obj, ParseRecord pr, ParseRecord objectPr, Boolean bIsString)
bei System.Runtime.Serialization.Formatters.Binary.ObjectReader.ParseObjectEnd(ParseRecord pr)
bei System.Runtime.Serialization.Formatters.Binary.ObjectReader.Parse(ParseRecord pr)
bei System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()
bei System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
bei System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
bei System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream)
bei System.Resources.ResXDataNode.GenerateObjectFromDataNodeInfo(DataNodeInfo dataNodeInfo, ITypeResolutionService typeResolver)
bei System.Resources.ResXDataNode.GetValue(ITypeResolutionService typeResolver)
bei System.Resources.ResXResourceReader.ParseDataNode(XmlTextReader reader, Boolean isMetaData)
bei System.Resources.ResXResourceReader.ParseXml(XmlTextReader reader)

推荐答案

设计人员神奇地"将自定义对象序列化为资源文件.我想您的自定义类已更改,因此旧版本无法反序列化.
您还应该检查一个组件是否有两个不同版本.
The designer "magically" serializes custom objects into resource files. I would guess that your custom class has changed and thus the old version cannot be deserialized.
You should also check if you have two different versions of one assembly flying around.


这是另一种情况,表明您始终应该在版本控制系统下工作!
这是简单而有效的.

请参阅以下讨论:版本控制系统,有哪些可供选择? [ ^ ].

—SA
P.S.:请原谅我的话题.在实践中,我仍然认为这是最有用的建议.
This is yet another case which shows that you always should work under Revision Control system!
This is easy and effective.

Please see this discussion: Revision control systems, which to choose from?[^].

—SA
P.S.: Please forgive me for off-topic. I still think this is the most useful advice, in practice.


这篇关于VS 2010 Designer错误:无法将类型xxx.yyy.zzz []转换为类型xxx.yyy.zzz [](是的,它是同一类型)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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