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 1758
"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 thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: thecrow |
last post by:
Alright, what the hell is going on here?
In the following code, I expect the printed result to be:
DEBUG: frank's last name is burns.
Instead, what I get is:
DEBUG: frank's last name is...
|
by: Brandon J. Van Every |
last post by:
What's better about Ruby than Python? I'm sure there's something. What is
it?
This is not a troll. I'm language shopping and I want people's answers. I
don't know beans about Ruby or have...
|
by: Sarah Tanembaum |
last post by:
Beside its an opensource and supported by community, what's the fundamental
differences between PostgreSQL and those high-price commercial database (and
some are bloated such as Oracle) from...
|
by: typingcat |
last post by:
First of all, I'm an Asian and I need to input Japanese, Korean and so
on. I've tried many PHP IDEs today, but almost non of them supported
Unicode (UTF-8) file.
I've found that the only Unicode...
|
by: Midnight Java Junkie |
last post by:
Dear Colleagues:
I feel that the dumbest questions are those that are never asked. I have
been given the opportunity to get into .NET. Our organization has a
subscription with Microsoft that...
|
by: lllomh |
last post by:
Define the method first
this.state = {
buttonBackgroundColor: 'green',
isBlinking: false, // A new status is added to identify whether the button is blinking or not
}
autoStart=()=>{
|
by: Mushico |
last post by:
How to calculate date of retirement from date of birth
|
by: DJRhino |
last post by:
Was curious if anyone else was having this same issue or not....
I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM)
The start time is equivalent to 19:00 (7PM) in Central...
|
by: tracyyun |
last post by:
Hello everyone,
I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
|
by: giovanniandrean |
last post by:
The energy model is structured as follows and uses excel sheets to give input data:
1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
|
by: NeoPa |
last post by:
Introduction
For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
|
by: Teri B |
last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course.
0ne-to-many. One course many roles.
Then I created a report based on the Course form and...
|
by: NeoPa |
last post by:
Introduction
For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
| |