Automation Error VB6 COM+ application installed on Windows server 2008

Beantwortet Automation Error VB6 COM+ application installed on Windows server 2008

  • Dienstag, 17. Juli 2012 19:40
     
     
    Respected Community Members,

                 I have one VB6 COM+ application installed on Windows server 2008 which has reference to one tlb file and uses its methods.

     When i run the client application from remote PC and call this COM+ compoennt installed on WindowsServer 2008, it throws an error:-

    err.description:-   "Automation Error"

    err.number = "-2146233079"

    I have TSSClassLibrary.tlb referenced in the COM+ object and this error comes in the 2nd below step in it:-

    Dim cTSS As TSSClassLibrary.TSSInterface
    Set cTSS = New TSSClassLibrary.TSSClass

    If i install that COM+ object in windows server 2003..it just work fine...without any issues.

    Does any one have any idea whether this is issue more with windows server 2008 or something else??

    Thanks,

    Nick

Alle Antworten

  • Mittwoch, 18. Juli 2012 04:39
    Moderator
     
     Beantwortet

    How about just run the application locally instead of remotely? I would like to see this result.

    Can you share the screenshot when you got error and the project?

    Please also help us collect the event record from the event viewer: http://support.microsoft.com/kb/302542 

    And maybe you can research out the root cause or make out a solution to solve it after you research the collected info.

    And after you configured to capture log and dumps when an application have problem, you can find the application process related last records in this directory folders: C:\Users\[current user]\AppData\Local\Microsoft\Windows\WER

    http://msdn.microsoft.com/en-us/library/windows/desktop/bb513638(v=vs.85).aspx please set the dumptype to 2, we need the full dump.

    If you cannot research out or make a solution/workaround, and you also want to research into this question, then please share the infos I mentioned above in your post use "skydrive". ***Please also attach your corresponding pdb files(including your references assemblies' pdb files).


    Best wishes,


    Mike Zhang[MSFT]
    MSDN Community Support | Feedback to us


  • Mittwoch, 18. Juli 2012 14:08
     
     

    Mike,

                  Thanks for the detailed update. But this is something i am trying to develop the model first time as part of our new Host integration server 2010 migration and i wants to keep the same COM+ functionality expect introducing this TSSClassLibrary.tlb which is VB.NET Wrapper class.I created this vb.net wrapper class because I need to consume WCF service and one of the microsoft representative guided me to introduce vb.net wrapper class as there is no easy way to consume WCF service directly into vb6 application.

    TSSClassLibrary.tlb file is created by using regasm.exe command on TSSClassLibrary.dll file. SO on the WIndows server 2008, i have COM+ component which calls this tlb file using below statements:-

    Dim cTSS As TSSClassLibrary.TSSInterface
    Set cTSS = New TSSClassLibrary.TSSClass

    and that's where the Automation error comes. but i think this is not ADO error ....am i right???

    I try to look ..but //.....There is no eventviewer detail error as well...If i run this locally on my windows server 2003 server...it works like a charm...

    but i can not take screenshot while i run it remotely...as RDS object is on Remote server......als othere is no PDB file involved here as well.

    also not the error is some thing else saying :-

    ?err.Description  :- ActiveX component can't create object

    Any idea?? whether am i missing any patch/update??? or it is not supported in windows server 2008??

    Simply overall what i am trying to do on windows server 2008 is...call COM+ installed on windows server 2008 which calls the class located in TSSClassLibrary.tlb file which is vb.net wrapper object which consumes WCF service...

    Am i missing something here???

    Please assist.

    Thanks,

    Nick

  • Donnerstag, 19. Juli 2012 05:05
    Moderator
     
     Beantwortet

    I'm not a WCF expert, I'm not very sure about that side issue.

    And when you said it can work on Windows Server 2003 and locally on Windows Server 2008, I think the components has no problem, and the problem would on the System configuration side.

    You said you cannot provide the dump and pdb files to help us can look into the memory when exception occur, I just can give you what I can think out things now.

    I think you will need the COM+ Network Access like these articles mentioned:

    http://blogs.msdn.com/b/maartenb/archive/2008/05/07/enabling-dcom-in-windows-server-2008.aspx 

    http://technet.microsoft.com/en-us/library/cc731967.aspx 

    http://docs.liebsoft.com/Enterprise-Random-Password-Manager-Installation-Guide/5601.htm


    Mike Zhang[MSFT]
    MSDN Community Support | Feedback to us

  • Mittwoch, 25. Juli 2012 17:09
     
     

    Sir, i tried all the links and try to add those specific excetion to firewall as well.

    I tried 64 bit - 32 bit scenario as well...to register the DLL using microsoft SDK 32 bit vs 64 bit utility as well.,,,,,but still the same error....

    I am not sure whether this is windows server 2008 issue or not as most of the Automation error are related to windoes server 2008. Not sure microsoft ever tested this scenario at all or not??

    Are there any one who have same situation of calling the vb6 COM+ method which calls the VB.NET Wrapper class on windows server 2008???

    Please assist.

  • Donnerstag, 26. Juli 2012 03:53
    Moderator
     
     Beantwortet

    I have no idea now, I will try to involve others senior engineers to help you research this issue.

    Thanks for your patient.


    Mike Zhang[MSFT]
    MSDN Community Support | Feedback to us

    • Als Antwort markiert Nicksoft2011 Mittwoch, 1. August 2012 19:14
    •  
  • Montag, 30. Juli 2012 13:34
     
     

    Mike,

    Thanks a lot. Any idea does any one takign a look at this scenario??

    Does any one can confirm that calling the COM+ functionality from windows server 2008 server might be tricky or not possible or require some special set up??

    Thanks,

    Nick

  • Dienstag, 31. Juli 2012 03:11
    Moderator
     
     Beantwortet

    I have involved another senior engineer to research this problem, I don't know why that engineer has not reply to you, maybe he/she has not workout the problem.

    Thanks for your patient.


    Mike Zhang[MSFT]
    MSDN Community Support | Feedback to us

    • Als Antwort markiert Nicksoft2011 Mittwoch, 1. August 2012 19:14
    •  
  • Montag, 6. August 2012 06:29
     
     

    Hi Nick,

    Actually we have experience that 32bit COM+ app running on Windows Server 2008 x64. So i think the issue you are experiecning is more like caused by your specific configuration, or s.th. For this kind of issue, we need to follow normal steps to troubleshoote it. For example: process monitor log, or dump file.  If still no progress after that, you can raise a service ticket to Microsoft support. Thanks for your understanding.

  • Montag, 6. August 2012 13:39
     
     

    Apac DSI - MSFT,

    Thanks for the update. I would like to proceed with this suggestion.

    Can you please assist me how do i provide the Process Monitor Log or Dump file??

    THanks,

    Nick

  • Dienstag, 21. August 2012 02:26
     
     

    Hi Nick,

    You can try the analysis of process monitor or dump file by yourself. Actually dump analysis is a little bit complicated task. it's recomended that you raise a service ticket to get help from Mcrosoft support.

    here i'd like to share you some resources about dump analysis:

    Crash Dump Analysis
    http://msdn.microsoft.com/en-us/library/windows/desktop/ee416349(v=vs.85).aspx

    Windows Hang and Crash Dump Analysis 1/9
    http://www.youtube.com/watch?v=JSeNWvjhBfg

    Windows Memory Dump Analysis
    http://www.google.com.sg/url?sa=t&rct=j&q=dump+analysis&source=web&cd=18&cad=rja&ved=0CGIQFjAHOAo&url=http%3A%2F%2Fwww.dumpanalysis.com%2FTraining%2FAccelerated-Windows-Memory-Dump-Analysis-Public.pdf&ei=zvAyUNS7MIfNrQfNpoCQBg&usg=AFQjCNFUoDdj2pMfholFz1jRoSvgrBR2Tg