what the?

S

Smokey Grindel

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

Mythran

Smokey Grindel said:
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(Object obj, Object
value, BindingFlags invokeAttr, Binder binder, CultureInfo culture,
Boolean doVisibilityCheck, Boolean doCheckConsistency)
at
System.Runtime.Serialization.FormatterServices.SerializationSetValue(MemberInfo
fi, Object target, Object value)
at
System.Runtime.Serialization.ObjectManager.CompleteObject(ObjectHolder
holder, Boolean bObjectFullyComplete)
at
System.Runtime.Serialization.ObjectManager.DoNewlyRegisteredObjectFixups(ObjectHolder
holder)
at System.Runtime.Serialization.ObjectManager.RegisterObject(Object
obj, Int64 objectID, SerializationInfo info, Int64 idOfContainingObj,
MemberInfo member, Int32[] arrayIndex)
at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.RegisterObject(Object
obj, ParseRecord pr, ParseRecord objectPr, Boolean bIsString)
at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.ParseObjectEnd(ParseRecord
pr)
at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.Parse(ParseRecord
pr)
at
System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()
at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler
handler, __BinaryParser serParser, Boolean fCheck, Boolean
isCrossAppDomain, IMethodCallMessage methodCallMessage)
at
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream
serializationStream, HeaderHandler handler, Boolean fCheck, Boolean
isCrossAppDomain, IMethodCallMessage methodCallMessage)
at
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream
serializationStream)
at
System.Resources.ResXDataNode.GenerateObjectFromDataNodeInfo(DataNodeInfo
dataNodeInfo, ITypeResolutionService typeResolver)
at System.Resources.ResXDataNode.GetValue(ITypeResolutionService
typeResolver)
at System.Resources.ResXResourceReader.ParseDataNode(XmlTextReader
reader, Boolean isMetaData)
at System.Resources.ResXResourceReader.ParseXml(XmlTextReader 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
 
S

Smokey Grindel

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 said:
Smokey Grindel said:
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(Object obj, Object
value, BindingFlags invokeAttr, Binder binder, CultureInfo culture,
Boolean doVisibilityCheck, Boolean doCheckConsistency)
at
System.Runtime.Serialization.FormatterServices.SerializationSetValue(MemberInfo
fi, Object target, Object value)
at
System.Runtime.Serialization.ObjectManager.CompleteObject(ObjectHolder
holder, Boolean bObjectFullyComplete)
at
System.Runtime.Serialization.ObjectManager.DoNewlyRegisteredObjectFixups(ObjectHolder
holder)
at System.Runtime.Serialization.ObjectManager.RegisterObject(Object
obj, Int64 objectID, SerializationInfo info, Int64 idOfContainingObj,
MemberInfo member, Int32[] arrayIndex)
at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.RegisterObject(Object
obj, ParseRecord pr, ParseRecord objectPr, Boolean bIsString)
at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.ParseObjectEnd(ParseRecord
pr)
at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.Parse(ParseRecord
pr)
at
System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()
at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler
handler, __BinaryParser serParser, Boolean fCheck, Boolean
isCrossAppDomain, IMethodCallMessage methodCallMessage)
at
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream
serializationStream, HeaderHandler handler, Boolean fCheck, Boolean
isCrossAppDomain, IMethodCallMessage methodCallMessage)
at
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream
serializationStream)
at
System.Resources.ResXDataNode.GenerateObjectFromDataNodeInfo(DataNodeInfo
dataNodeInfo, ITypeResolutionService typeResolver)
at System.Resources.ResXDataNode.GetValue(ITypeResolutionService
typeResolver)
at System.Resources.ResXResourceReader.ParseDataNode(XmlTextReader
reader, Boolean isMetaData)
at System.Resources.ResXResourceReader.ParseXml(XmlTextReader
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
 
L

Lit

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 said:
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 said:
Smokey Grindel said:
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(Object obj,
Object value, BindingFlags invokeAttr, Binder binder, CultureInfo
culture, Boolean doVisibilityCheck, Boolean doCheckConsistency)
at
System.Runtime.Serialization.FormatterServices.SerializationSetValue(MemberInfo
fi, Object target, Object value)
at
System.Runtime.Serialization.ObjectManager.CompleteObject(ObjectHolder
holder, Boolean bObjectFullyComplete)
at
System.Runtime.Serialization.ObjectManager.DoNewlyRegisteredObjectFixups(ObjectHolder
holder)
at System.Runtime.Serialization.ObjectManager.RegisterObject(Object
obj, Int64 objectID, SerializationInfo info, Int64 idOfContainingObj,
MemberInfo member, Int32[] arrayIndex)
at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.RegisterObject(Object
obj, ParseRecord pr, ParseRecord objectPr, Boolean bIsString)
at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.ParseObjectEnd(ParseRecord
pr)
at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.Parse(ParseRecord
pr)
at
System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run()
at
System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler
handler, __BinaryParser serParser, Boolean fCheck, Boolean
isCrossAppDomain, IMethodCallMessage methodCallMessage)
at
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream
serializationStream, HeaderHandler handler, Boolean fCheck, Boolean
isCrossAppDomain, IMethodCallMessage methodCallMessage)
at
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream
serializationStream)
at
System.Resources.ResXDataNode.GenerateObjectFromDataNodeInfo(DataNodeInfo
dataNodeInfo, ITypeResolutionService typeResolver)
at System.Resources.ResXDataNode.GetValue(ITypeResolutionService
typeResolver)
at System.Resources.ResXResourceReader.ParseDataNode(XmlTextReader
reader, Boolean isMetaData)
at System.Resources.ResXResourceReader.ParseXml(XmlTextReader
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
 
P

Phillip Taylor

remove reference, clean bin, debug folders, compile with errors, then
re-reference.

that might help if you are referencing the same lib.

Lit


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

Guest

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top