I've got an object that has other associated objects that resides in different assemblys then the parent object. It also has different namespaces.
Currently, I get an exception that states:
"Value cannot be null.
Parameter name: type"
This happens when I try to load data from the database and it tries to create the object using CreateInstance() in CpersistentBroker.vb in function retreivePrivateObject.
I don't now if this is a feature request or a bug.
Thanks,
Dan
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2004-06-01
Hi Richard,
I couldn't wait, I had to make some changes to the code to support the feature. I'll open a bug and attach a CVS patch file.
What I did is, to add to the mapping XML file two new class node attributes.
1. assemblypath - states the name and location of the assembly.
2. namespace - states the namespace the class type belongs to.
This way, when it is time to create a new object instance, CreateInstanceFrom() method is using the assembly path and class namespace and its type name to create it.
Regards,
Dan
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Richard,
I've got an object that has other associated objects that resides in different assemblys then the parent object. It also has different namespaces.
Currently, I get an exception that states:
"Value cannot be null.
Parameter name: type"
This happens when I try to load data from the database and it tries to create the object using CreateInstance() in CpersistentBroker.vb in function retreivePrivateObject.
I don't now if this is a feature request or a bug.
Thanks,
Dan
Hi Richard,
I couldn't wait, I had to make some changes to the code to support the feature. I'll open a bug and attach a CVS patch file.
What I did is, to add to the mapping XML file two new class node attributes.
1. assemblypath - states the name and location of the assembly.
2. namespace - states the namespace the class type belongs to.
This way, when it is time to create a new object instance, CreateInstanceFrom() method is using the assembly path and class namespace and its type name to create it.
Regards,
Dan
Hi Dan,
Sorry for the lack of response. My laptop corrupted it's SAM registry and decided not to let anyone log on, so I had to rebuild.
You won't beleive how many applications I needed to reinstall :-(
I'll check the changes you made and follow up in the bug report.
- Richard.