Menu

Objects that resides in different assemblies

Anonymous
2004-05-31
2004-06-03
  • Anonymous

    Anonymous - 2004-05-31

    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

     
    • Anonymous

      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

       
    • Richard Banks

      Richard Banks - 2004-06-03

      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.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.