Results 1 to 7 of 7

Thread: COM+ simple question

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 1999
    Location
    Belfast
    Posts
    254
    Hi,
    can someone tell me if it is mandatory to reference the COM+ type library if you are packaging a dll, but not using any transaction / features attributed to COM+.

    Thanks

    Lenin.

  2. #2
    Addicted Member
    Join Date
    Jun 1999
    Location
    Los Angeles
    Posts
    186
    If you are not using transactions nor anyother goodie from COM+ you dont need to referense the type library.
    You can still install your app in COM+ and still get goodies like connection pooling ressource pooling and other good stuff.

    André

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Feb 1999
    Location
    Belfast
    Posts
    254
    I thought this was the case ( as is with MTS ), but had an issue with object creation last week, which was only resolved ( by someone else ) by referencing the COM+ type library.

    Thanks

    Lenin.

  4. #4
    Addicted Member
    Join Date
    Jun 1999
    Location
    Los Angeles
    Posts
    186
    Wow, that's weird.
    Also I have experienced doing stuff in MTS that no longer works on COM+.
    I get the dreaded error:
    Method'~'of object '~' failed.

    It works outside COM+ but fails inside.

    Weird stuff.

    Good luck

    André

  5. #5
    New Member
    Join Date
    Nov 2000
    Location
    Costa Rica
    Posts
    8
    About This Error:
    Method'~'of object '~' failed

    It is because Youre Object it's not
    Persistable

    I had This Problem too with the Dictionary

    i made some test and the object is well received
    but when you try toacces it's properties or method
    it fails into your error!!

    i even try to crate my own Collection (made my own Objects)
    Based in Arrays, it worked but there was a problem
    when i added an object to an item it failed,
    again because of the persistency thing

    Recommendations

    You can Use an AdoDb.Recordset to pass

    Data Trough

    how

    Yow can create your own recordset with the fields you need
    so you can create a replic of the data in the properties of your object

    then you receive the object and if you need you can Create a New Instance of your object and set the Properties Values!
    I have allready tried this in Mts.

    Dim Rs as New Recordset

    Rs.Fields.Append("Name", adBstr)
    Rs.Fields.Append("Age", adInteger)

    Rs.Open

    Hope it helps!


    Zopailot

  6. #6
    Addicted Member
    Join Date
    Jun 1999
    Location
    Los Angeles
    Posts
    186
    Great, I have had headaches with this error,
    Thanks, I'm trying this right away.

    Any theory on why persistable solves the problem?

    André

  7. #7
    New Member
    Join Date
    Nov 2000
    Location
    Costa Rica
    Posts
    8
    yes i think it is because an object resides in Ram

    and i guess that some related information of the object
    cannot be located

    I'M GUESSING, I'M NOT REALLY SURE!
    Zopailot

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width