Anyone able to figure whats wrong here? It is saying it cant convert from
itself to itself? I am confused on this error that the designer is
throwing...
One or more errors encountered while loading the designer. The errors
are listed below. Some errors can be fixed by rebuilding your project, while
others may require code changes.
Object of type 'Comp.Bene.Security.Company[]' cannot be converted to
type 'Comp.Bene.Security.Company[]'.
Hide
at System.RuntimeType.CheckValue(Object value, Binder binder,
CultureInfo culture, BindingFlags invokeAttr)
at System.Reflection.RtFieldInfo.InternalSetValue(Obj ect obj, Object
value, BindingFlags invokeAttr, Binder binder, CultureInfo culture, Boolean
doVisibilityCheck, Boolean doCheckConsistency)
at
System.Runtime.Serialization.FormatterServices.Ser ializationSetValue(MemberInfo
fi, Object target, Object value)
at
System.Runtime.Serialization.ObjectManager.Complet eObject(ObjectHolder
holder, Boolean bObjectFullyComplete)
at
System.Runtime.Serialization.ObjectManager.DoNewly RegisteredObjectFixups(ObjectHolder
holder)
at System.Runtime.Serialization.ObjectManager.Registe rObject(Object
obj, Int64 objectID, SerializationInfo info, Int64 idOfContainingObj,
MemberInfo member, Int32[] arrayIndex)
at
System.Runtime.Serialization.Formatters.Binary.Obj ectReader.RegisterObject(Object
obj, ParseRecord pr, ParseRecord objectPr, Boolean bIsString)
at
System.Runtime.Serialization.Formatters.Binary.Obj ectReader.ParseObjectEnd(ParseRecord
pr)
at
System.Runtime.Serialization.Formatters.Binary.Obj ectReader.Parse(ParseRecord
pr)
at System.Runtime.Serialization.Formatters.Binary.__B inaryParser.Run()
at
System.Runtime.Serialization.Formatters.Binary.Obj ectReader.Deserialize(HeaderHandler
handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain,
IMethodCallMessage methodCallMessage)
at
System.Runtime.Serialization.Formatters.Binary.Bin aryFormatter.Deserialize(Stream
serializationStream, HeaderHandler handler, Boolean fCheck, Boolean
isCrossAppDomain, IMethodCallMessage methodCallMessage)
at
System.Runtime.Serialization.Formatters.Binary.Bin aryFormatter.Deserialize(Stream
serializationStream)
at
System.Resources.ResXDataNode.GenerateObjectFromDa taNodeInfo(DataNodeInfo
dataNodeInfo, ITypeResolutionService typeResolver)
at System.Resources.ResXDataNode.GetValue(ITypeResolu tionService
typeResolver)
at System.Resources.ResXResourceReader.ParseDataNode( XmlTextReader
reader, Boolean isMetaData)
at System.Resources.ResXResourceReader.ParseXml(XmlTe xtReader reader) 5 1494
"Smokey Grindel" <no****@nospam.comwrote in message
news:eQ**************@TK2MSFTNGP02.phx.gbl...
Anyone able to figure whats wrong here? It is saying it cant convert from
itself to itself? I am confused on this error that the designer is
throwing...
One or more errors encountered while loading the designer. The errors
are listed below. Some errors can be fixed by rebuilding your project,
while others may require code changes.
Object of type 'Comp.Bene.Security.Company[]' cannot be converted to
type 'Comp.Bene.Security.Company[]'.
Hide
at System.RuntimeType.CheckValue(Object value, Binder binder,
CultureInfo culture, BindingFlags invokeAttr)
at System.Reflection.RtFieldInfo.InternalSetValue(Obj ect obj, Object
value, BindingFlags invokeAttr, Binder binder, CultureInfo culture,
Boolean doVisibilityCheck, Boolean doCheckConsistency)
at
System.Runtime.Serialization.FormatterServices.Ser ializationSetValue(MemberInfo
fi, Object target, Object value)
at
System.Runtime.Serialization.ObjectManager.Complet eObject(ObjectHolder
holder, Boolean bObjectFullyComplete)
at
System.Runtime.Serialization.ObjectManager.DoNewly RegisteredObjectFixups(ObjectHolder
holder)
at System.Runtime.Serialization.ObjectManager.Registe rObject(Object
obj, Int64 objectID, SerializationInfo info, Int64 idOfContainingObj,
MemberInfo member, Int32[] arrayIndex)
at
System.Runtime.Serialization.Formatters.Binary.Obj ectReader.RegisterObject(Object
obj, ParseRecord pr, ParseRecord objectPr, Boolean bIsString)
at
System.Runtime.Serialization.Formatters.Binary.Obj ectReader.ParseObjectEnd(ParseRecord
pr)
at
System.Runtime.Serialization.Formatters.Binary.Obj ectReader.Parse(ParseRecord
pr)
at
System.Runtime.Serialization.Formatters.Binary.__B inaryParser.Run()
at
System.Runtime.Serialization.Formatters.Binary.Obj ectReader.Deserialize(HeaderHandler
handler, __BinaryParser serParser, Boolean fCheck, Boolean
isCrossAppDomain, IMethodCallMessage methodCallMessage)
at
System.Runtime.Serialization.Formatters.Binary.Bin aryFormatter.Deserialize(Stream
serializationStream, HeaderHandler handler, Boolean fCheck, Boolean
isCrossAppDomain, IMethodCallMessage methodCallMessage)
at
System.Runtime.Serialization.Formatters.Binary.Bin aryFormatter.Deserialize(Stream
serializationStream)
at
System.Resources.ResXDataNode.GenerateObjectFromDa taNodeInfo(DataNodeInfo
dataNodeInfo, ITypeResolutionService typeResolver)
at System.Resources.ResXDataNode.GetValue(ITypeResolu tionService
typeResolver)
at System.Resources.ResXResourceReader.ParseDataNode( XmlTextReader
reader, Boolean isMetaData)
at System.Resources.ResXResourceReader.ParseXml(XmlTe xtReader reader)
This usually happens when you have a reference to an assembly in two
separate projects, the references are set to "Copy Local", and the
references to the assembly refer to different versions (say, assembly A
version 1.1.0.0 and assembly A version 1.2.1.1). When both references are
copy local, your primary project can only copy 1 to it's 'bin' directory,
and one of the references won't be loaded (only a single one will be loaded
at that time). A class in the loaded assembly is referenced, but won't be
the expected type by the project referencing the assembly that wasn't loaded
(because it expected the other version)....
<pant pant breath breath>
HTH,
Mythran
humm, not sure if that is the case ore not.. all libraries are in the same
solution and they only point to "projects in solutions" for the
references... so why one would have the wrong version I am very confused
on...
"Mythran" <ki********@hotmail.comwrote in message
news:94**********************************@microsof t.com...
>
"Smokey Grindel" <no****@nospam.comwrote in message
news:eQ**************@TK2MSFTNGP02.phx.gbl...
>Anyone able to figure whats wrong here? It is saying it cant convert from itself to itself? I am confused on this error that the designer is throwing...
One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes.
Object of type 'Comp.Bene.Security.Company[]' cannot be converted to type 'Comp.Bene.Security.Company[]'. Hide
at System.RuntimeType.CheckValue(Object value, Binder binder, CultureInfo culture, BindingFlags invokeAttr) at System.Reflection.RtFieldInfo.InternalSetValue(Obj ect obj, Object value, BindingFlags invokeAttr, Binder binder, CultureInfo culture, Boolean doVisibilityCheck, Boolean doCheckConsistency) at System.Runtime.Serialization.FormatterServices.Se rializationSetValue(MemberInfo fi, Object target, Object value) at System.Runtime.Serialization.ObjectManager.Comple teObject(ObjectHolder holder, Boolean bObjectFullyComplete) at System.Runtime.Serialization.ObjectManager.DoNewl yRegisteredObjectFixups(ObjectHolder holder) at System.Runtime.Serialization.ObjectManager.Registe rObject(Object obj, Int64 objectID, SerializationInfo info, Int64 idOfContainingObj, MemberInfo member, Int32[] arrayIndex) at System.Runtime.Serialization.Formatters.Binary.Ob jectReader.RegisterObject(Object obj, ParseRecord pr, ParseRecord objectPr, Boolean bIsString) at System.Runtime.Serialization.Formatters.Binary.Ob jectReader.ParseObjectEnd(ParseRecord pr) at System.Runtime.Serialization.Formatters.Binary.Ob jectReader.Parse(ParseRecord pr) at System.Runtime.Serialization.Formatters.Binary.__ BinaryParser.Run() at System.Runtime.Serialization.Formatters.Binary.Ob jectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage) at System.Runtime.Serialization.Formatters.Binary.Bi naryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage) at System.Runtime.Serialization.Formatters.Binary.Bi naryFormatter.Deserialize(Stream serializationStream) at System.Resources.ResXDataNode.GenerateObjectFromD ataNodeInfo(DataNodeInfo dataNodeInfo, ITypeResolutionService typeResolver) at System.Resources.ResXDataNode.GetValue(ITypeResolu tionService typeResolver) at System.Resources.ResXResourceReader.ParseDataNode( XmlTextReader reader, Boolean isMetaData) at System.Resources.ResXResourceReader.ParseXml(XmlTe xtReader reader)
This usually happens when you have a reference to an assembly in two
separate projects, the references are set to "Copy Local", and the
references to the assembly refer to different versions (say, assembly A
version 1.1.0.0 and assembly A version 1.2.1.1). When both references are
copy local, your primary project can only copy 1 to it's 'bin' directory,
and one of the references won't be loaded (only a single one will be
loaded at that time). A class in the loaded assembly is referenced, but
won't be the expected type by the project referencing the assembly that
wasn't loaded (because it expected the other version)....
<pant pant breath breath>
HTH,
Mythran
remove reference, clean bin, debug folders, compile with errors, then
re-reference.
that might help if you are referencing the same lib.
Lit
"Smokey Grindel" <no****@nospam.comwrote in message
news:ux**************@TK2MSFTNGP06.phx.gbl...
humm, not sure if that is the case ore not.. all libraries are in the same
solution and they only point to "projects in solutions" for the
references... so why one would have the wrong version I am very confused
on...
"Mythran" <ki********@hotmail.comwrote in message
news:94**********************************@microsof t.com...
>>
"Smokey Grindel" <no****@nospam.comwrote in message news:eQ**************@TK2MSFTNGP02.phx.gbl...
>>Anyone able to figure whats wrong here? It is saying it cant convert from itself to itself? I am confused on this error that the designer is throwing...
One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes.
Object of type 'Comp.Bene.Security.Company[]' cannot be converted to type 'Comp.Bene.Security.Company[]'. Hide
at System.RuntimeType.CheckValue(Object value, Binder binder, CultureInfo culture, BindingFlags invokeAttr) at System.Reflection.RtFieldInfo.InternalSetValue(Obj ect obj, Object value, BindingFlags invokeAttr, Binder binder, CultureInfo culture, Boolean doVisibilityCheck, Boolean doCheckConsistency) at System.Runtime.Serialization.FormatterServices.S erializationSetValue(MemberInfo fi, Object target, Object value) at System.Runtime.Serialization.ObjectManager.Compl eteObject(ObjectHolder holder, Boolean bObjectFullyComplete) at System.Runtime.Serialization.ObjectManager.DoNew lyRegisteredObjectFixups(ObjectHolder holder) at System.Runtime.Serialization.ObjectManager.Registe rObject(Object obj, Int64 objectID, SerializationInfo info, Int64 idOfContainingObj, MemberInfo member, Int32[] arrayIndex) at System.Runtime.Serialization.Formatters.Binary.O bjectReader.RegisterObject(Object obj, ParseRecord pr, ParseRecord objectPr, Boolean bIsString) at System.Runtime.Serialization.Formatters.Binary.O bjectReader.ParseObjectEnd(ParseRecord pr) at System.Runtime.Serialization.Formatters.Binary.O bjectReader.Parse(ParseRecord pr) at System.Runtime.Serialization.Formatters.Binary._ _BinaryParser.Run() at System.Runtime.Serialization.Formatters.Binary.O bjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage) at System.Runtime.Serialization.Formatters.Binary.B inaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage) at System.Runtime.Serialization.Formatters.Binary.B inaryFormatter.Deserialize(Stream serializationStream) at System.Resources.ResXDataNode.GenerateObjectFrom DataNodeInfo(DataNodeInfo dataNodeInfo, ITypeResolutionService typeResolver) at System.Resources.ResXDataNode.GetValue(ITypeResolu tionService typeResolver) at System.Resources.ResXResourceReader.ParseDataNode( XmlTextReader reader, Boolean isMetaData) at System.Resources.ResXResourceReader.ParseXml(XmlTe xtReader reader)
This usually happens when you have a reference to an assembly in two separate projects, the references are set to "Copy Local", and the references to the assembly refer to different versions (say, assembly A version 1.1.0.0 and assembly A version 1.2.1.1). When both references are copy local, your primary project can only copy 1 to it's 'bin' directory, and one of the references won't be loaded (only a single one will be loaded at that time). A class in the loaded assembly is referenced, but won't be the expected type by the project referencing the assembly that wasn't loaded (because it expected the other version)....
<pant pant breath breath>
HTH, Mythran
On Sep 12, 12:00 am, "Lit" <sql_agent...@hotmail.comwrote:
remove reference, clean bin, debug folders, compile with errors, then
re-reference.
that might help if you are referencing the same lib.
Lit
"Smokey Grindel" <nos...@nospam.comwrote in message
news:ux**************@TK2MSFTNGP06.phx.gbl...
humm, not sure if that is the case ore not.. all libraries are in the same
solution and they only point to "projects in solutions" for the
references... so why one would have the wrong version I am very confused
on...
"Mythran" <kip_pot...@hotmail.comwrote in message
news:94**********************************@microsof t.com...
"Smokey Grindel" <nos...@nospam.comwrote in message news:eQ**************@TK2MSFTNGP02.phx.gbl... Anyone able to figure whats wrong here? It is saying it cant convert from itself to itself? I am confused on this error that the designer is throwing...
> One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes.
> Object of type 'Comp.Bene.Security.Company[]' cannot be converted to type 'Comp.Bene.Security.Company[]'. Hide
> at System.RuntimeType.CheckValue(Object value, Binder binder, CultureInfo culture, BindingFlags invokeAttr) at System.Reflection.RtFieldInfo.InternalSetValue(Obj ect obj, Object value, BindingFlags invokeAttr, Binder binder, CultureInfo culture, Boolean doVisibilityCheck, Boolean doCheckConsistency) at System.Runtime.Serialization.FormatterServices.Se rializationSetValue(MemberInfo fi, Object target, Object value) at System.Runtime.Serialization.ObjectManager.Comple teObject(ObjectHolder holder, Boolean bObjectFullyComplete) at System.Runtime.Serialization.ObjectManager.DoNewl yRegisteredObjectFixups(ObjectHolder holder) at System.Runtime.Serialization.ObjectManager.Registe rObject(Object obj, Int64 objectID, SerializationInfo info, Int64 idOfContainingObj, MemberInfo member, Int32[] arrayIndex) at System.Runtime.Serialization.Formatters.Binary.Ob jectReader.RegisterObject(Object obj, ParseRecord pr, ParseRecord objectPr, Boolean bIsString) at System.Runtime.Serialization.Formatters.Binary.Ob jectReader.ParseObjectEnd(ParseRecord pr) at System.Runtime.Serialization.Formatters.Binary.Ob jectReader.Parse(ParseRecord pr) at System.Runtime.Serialization.Formatters.Binary.__ BinaryParser.Run() at System.Runtime.Serialization.Formatters.Binary.Ob jectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage) at System.Runtime.Serialization.Formatters.Binary.Bi naryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage) at System.Runtime.Serialization.Formatters.Binary.Bi naryFormatter.Deserialize(Stream serializationStream) at System.Resources.ResXDataNode.GenerateObjectFromD ataNodeInfo(DataNodeInfo dataNodeInfo, ITypeResolutionService typeResolver) at System.Resources.ResXDataNode.GetValue(ITypeResolu tionService typeResolver) at System.Resources.ResXResourceReader.ParseDataNode( XmlTextReader reader, Boolean isMetaData) at System.Resources.ResXResourceReader.ParseXml(XmlTe xtReader reader)
This usually happens when you have a reference to an assembly in two
separate projects, the references are set to "Copy Local", and the
references to the assembly refer to different versions (say, assembly A
version 1.1.0.0 and assembly A version 1.2.1.1). When both references
are copy local, your primary project can only copy 1 to it's 'bin'
directory, and one of the references won't be loaded (only a single one
will be loaded at that time). A class in the loaded assembly is
referenced, but won't be the expected type by the project referencing the
assembly that wasn't loaded (because it expected the other version)....
<pant pant breath breath>
HTH,
Mythran
If you serialise an object and write it to disk / storage, then change
the "Company" class (i.e. add a variable), rerun the program object
and then deserialise and load the object from the disk again you may
get an exception like this because the old object data (Company)
doesn't fit into the memory structure for a Company.
Perhaps....
Phillip Taylor
You might want to change the Assembly number Attribute in the Assembly you
are referencing to a set number, i.e., remove the * so the same assembly
number is used each time it is compiled. Just a thought.
--
Dennis in Houston
"Smokey Grindel" wrote:
Anyone able to figure whats wrong here? It is saying it cant convert from
itself to itself? I am confused on this error that the designer is
throwing...
One or more errors encountered while loading the designer. The errors
are listed below. Some errors can be fixed by rebuilding your project, while
others may require code changes.
Object of type 'Comp.Bene.Security.Company[]' cannot be converted to
type 'Comp.Bene.Security.Company[]'.
Hide
at System.RuntimeType.CheckValue(Object value, Binder binder,
CultureInfo culture, BindingFlags invokeAttr)
at System.Reflection.RtFieldInfo.InternalSetValue(Obj ect obj, Object
value, BindingFlags invokeAttr, Binder binder, CultureInfo culture, Boolean
doVisibilityCheck, Boolean doCheckConsistency)
at
System.Runtime.Serialization.FormatterServices.Ser ializationSetValue(MemberInfo
fi, Object target, Object value)
at
System.Runtime.Serialization.ObjectManager.Complet eObject(ObjectHolder
holder, Boolean bObjectFullyComplete)
at
System.Runtime.Serialization.ObjectManager.DoNewly RegisteredObjectFixups(ObjectHolder
holder)
at System.Runtime.Serialization.ObjectManager.Registe rObject(Object
obj, Int64 objectID, SerializationInfo info, Int64 idOfContainingObj,
MemberInfo member, Int32[] arrayIndex)
at
System.Runtime.Serialization.Formatters.Binary.Obj ectReader.RegisterObject(Object
obj, ParseRecord pr, ParseRecord objectPr, Boolean bIsString)
at
System.Runtime.Serialization.Formatters.Binary.Obj ectReader.ParseObjectEnd(ParseRecord
pr)
at
System.Runtime.Serialization.Formatters.Binary.Obj ectReader.Parse(ParseRecord
pr)
at System.Runtime.Serialization.Formatters.Binary.__B inaryParser.Run()
at
System.Runtime.Serialization.Formatters.Binary.Obj ectReader.Deserialize(HeaderHandler
handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain,
IMethodCallMessage methodCallMessage)
at
System.Runtime.Serialization.Formatters.Binary.Bin aryFormatter.Deserialize(Stream
serializationStream, HeaderHandler handler, Boolean fCheck, Boolean
isCrossAppDomain, IMethodCallMessage methodCallMessage)
at
System.Runtime.Serialization.Formatters.Binary.Bin aryFormatter.Deserialize(Stream
serializationStream)
at
System.Resources.ResXDataNode.GenerateObjectFromDa taNodeInfo(DataNodeInfo
dataNodeInfo, ITypeResolutionService typeResolver)
at System.Resources.ResXDataNode.GetValue(ITypeResolu tionService
typeResolver)
at System.Resources.ResXResourceReader.ParseDataNode( XmlTextReader
reader, Boolean isMetaData)
at System.Resources.ResXResourceReader.ParseXml(XmlTe xtReader reader) This discussion thread is closed Replies have been disabled for this discussion. Similar topics
2 posts
views
Thread by thecrow |
last post: by
|
220 posts
views
Thread by Brandon J. Van Every |
last post: by
|
125 posts
views
Thread by Sarah Tanembaum |
last post: by
|
121 posts
views
Thread by typingcat |
last post: by
|
8 posts
views
Thread by Midnight Java Junkie |
last post: by
| | | | | | | | | | |