Results 1 to 10 of 10

Thread: Problem with COM+ component in VB (&H80004005 )

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2000
    Location
    Vaxjo, Sweden
    Posts
    85

    Angry Problem with COM+ component in VB (&H80004005 )

    I've got a problem with some COM+ components during development. I'm using VB6 (SP5) under WinXP (SP1).

    Ok, here's how to make the problem appear:
    1) Create a new project (EXE)
    2) Add another program (ActiveX DLL)
    3) Set the MTSTransactionMode for Class1 to anything but NotAnMTSObject.

    Run the project group in VB. Wham! "System Error (&H80004005)" before the project even starts up. Compiling seems to work fine, and the compiled components also seem to work when registering them in COM+.

    I've checked MSDN with no luck. Have anyone else seen this? In any case, is there a proper procedure to report this problem to MS?

    --Anders

  2. #2
    Lively Member
    Join Date
    Aug 2002
    Posts
    126
    this is very obvious.
    when u set MTSTransactionMode property other then NotAnMTSObject u r actually "telling" VB that u want to run the object under some context in MTS (or COM+).
    when u start running application under VB IDE, vb create this application (DLL or EXE) under it's own context, but he cannot run an MTS object under it's own context beacuse he don't have the appropriate sevices to support to that application (or object).

    if u want to run this project u must compile it and install it under COM+ application.

    u should read more about COM+, Context, Activities etc.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jul 2000
    Location
    Vaxjo, Sweden
    Posts
    85
    Actually, it's not that obvious. I've been working with this project for a few years now, and never had a problem with this.
    I can also verify that this works fine under both NT4and Win2k. Yes, you do get a warning that the project should be run under MTS, but you can still run it.
    Also, in order to debug a COM+/MTS object you should compile it, install it in COM+ and then be able to run it in debug mode. But this doesn't solve the problem.

    From MSDN:
    Specifies the transactional behavior of a class. This property is only used by components running in the Microsoft Transaction Server, and has no effect if the component is run outside of the Transaction Server.
    --Anders
    Last edited by Anders Englund; Oct 23rd, 2002 at 07:15 AM.
    Reality is what you make up when you can't handle your fantasies.

  4. #4
    Lively Member
    Join Date
    Aug 2002
    Posts
    126
    ok,
    so u do agree that debugging this project will be in VB context, not COM+.
    and u right about the ability to run the project from VB, and yes u will get a warning about this issue.
    i have no problem to run the project in that case, and i am getting warning message from vb.
    i think u should check service pack for vb and for win2k.

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Jul 2000
    Location
    Vaxjo, Sweden
    Posts
    85
    I'm not running Win2k. It's not a problem when I try it in Win2k. I'm running Windows XP Pro.

    --Anders

  6. #6
    Lively Member
    Join Date
    Aug 2002
    Posts
    126
    so check the service pack for xp

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Jul 2000
    Location
    Vaxjo, Sweden
    Posts
    85
    Been there, done that. Won't work either way.

    --Anders
    Reality is what you make up when you can't handle your fantasies.

  8. #8
    New Member
    Join Date
    Jan 2008
    Posts
    1

    Re: Problem with COM+ component in VB (&H80004005 )

    I sometimes have the same problem with my projectgroup, not always. I'm running against a VSS (Visual Source Safe) database on a remote server in a different domain. When I disconnect from the remote VSS database the error dissapears. Then I can reconnect to VSS and debug the application again. I don't know why.
    Last edited by mattiasf; Feb 11th, 2008 at 03:11 PM.

  9. #9
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Problem with COM+ component in VB (&H80004005 )

    By VSS do you mean Visual Source Safe?

  10. #10
    New Member
    Join Date
    Feb 2008
    Posts
    1

    Re: Problem with COM+ component in VB (&H80004005 )

    Hi guys,
    I had the exact same problem trying to debug my ActiveX app. I began after I switched from one domain to another with my company. If found the link below but did not need to follow all the items listed. Instead I used the vbs script to disable the directory service lookup and started my VB6 ActiveX project to debug. Once I was sure that I was not going to get the “System Error &H80004005 Unspecified error" error, I reran the vbs script and re-enable the service lookup. So far I’ve not had any problems. Good luck.



    http://www.talkaboutsoftware.com/gro...ges/10784.html

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