Click here to Skip to main content
15,892,480 members
Home / Discussions / COM
   

COM

 
GeneralRe: Basics About COM..... Pin
Prabs frm PGP16-Aug-06 21:10
Prabs frm PGP16-Aug-06 21:10 
QuestionActive x fire events how?? [modified] Pin
With_problem16-Aug-06 18:32
With_problem16-Aug-06 18:32 
AnswerRe: Active x fire events how?? Pin
kumarprabhakar7422-Aug-06 19:37
kumarprabhakar7422-Aug-06 19:37 
QuestionHow to access html tag param in a component control? Pin
Wolfgang Jia15-Aug-06 18:57
Wolfgang Jia15-Aug-06 18:57 
QuestionC++ Server - VB Client - Passing Structures Pin
Tiramisu215-Aug-06 11:28
Tiramisu215-Aug-06 11:28 
AnswerRe: C++ Server - VB Client - Passing Structures Pin
Mike Dimmick16-Aug-06 17:22
Mike Dimmick16-Aug-06 17:22 
Questionvb.net call the com component created with MFC Pin
JaneQuestion15-Aug-06 3:56
JaneQuestion15-Aug-06 3:56 
QuestionCOM+ (Enterprise Services) Debugging remotely Pin
buffbuh11-Aug-06 10:47
buffbuh11-Aug-06 10:47 
I have created a COM+ component in VB.NET. This is a class library using factoring compiled into a dll file (MHC_ES.dll). This file references a C++ dll called "vb.dll". This is on a Windows Server 2003 using a Windows XP (eventually Windows 2000 to be used) client.

The problem is, when I have the service started on the server, the COM+ solution attached to the correct process, run the client, and get to one of the COM+ functions, it does not step into the breakpointed code on the server (COM+ solution open). I also get an error saying "Unable to load DLL (vb.dll)" - not the COM+ dll component, but the C++ dll it refers to.

The following code and methods are used to create the component service:

<assembly: applicationname("vbdll_es")="">
<assembly: descriptionattribute("vbdll_remoting="" component")="">
<assembly: applicationactivation(activationoption.library)="">
<assembly: assemblykeyfile("vbdll_es.snk")="">

<transaction(transactionoption.required), _
justintimeactivation(true),="" _
objectpooling(enabled:="True," minpoolsize:="2," maxpoolsize:="10)," _
constructionenabledattribute(default:="Server=192.168.0.46;Integrated Security=SSPI" )=""> _
Public Class vbdll_remoting

Inherits ServicedComponent

Public Shared attrs() As Object = {New System.Runtime.Remoting.Activation.UrlAttribute("tcp://192.168.0.46:50000/vbdll_remoting.rem")}
Public Shared instance As vbdll_remoting = Nothing

Public Shared Function get_instance() As vbdll_remoting
Dim intInput As Integer

If (instance Is Nothing) Then
Try
instance = New vbdll_remoting
Return instance
Catch ex As Exception
MsgBox(ex.Message & vbCrLf & vbCrLf & "'vbdll_remoting.get_instance' failed.")
End Try
End If
End Function

<autocompleteattribute(true)> _
Public Sub remote_check()
'See if App is up and running.
End Sub

End Class

' And a module here referring to vb.dll (C++ compiled dll)
' functions.

Imports System.Runtime.InteropServices

Module vbdll_ext

' /*** DLL test functions***/
<dllimport("vb.dll")> _
Public Sub vb_set(ByVal str_Renamed As String)
End Sub

' Other references to vb.dll (C++ compiled dll)

End Module

I use the following methods:

1. gacutil -i MHC_ES.dll
2. regsvcs.exe MHC_ES.dll
3. open Component Services
4. find corresponding COM+ component
5. open properties
6. Activation tab, change to Server Application
7. press "Apply"
8. check "Run application as NT Service"
9. go to Advanced tab
10. check Debugging "Launch in debugger"
11. OK and close properties
12. export as .MSI and install on client
13. refer to MHC_ES class on client
14. Start the component service on server
15. Open COM+ VB.NET solution on server
16. Go to Debug on menu and attach to appropriate process which appears as DllHost.exe
17. Run app on Client (Windows XP on network to Windows Server 2003)
18. Step to point at which it calls COM+ function

The breakpoint set in the COM+ VB.NET solution does not catch, and the "Unable to load DLL (vb.dll)" comes up.

I've been trying lots of things, but cannot get it to step into the COM+ code on the server side. I have run the client app on the Windows 2003 server itself. It will step into the COM+ code, but as soon as it hits the vb.dll function, it hangs. This vb.dll is a legacy dll that has been working fine.

In fact, using .NET remoting in stead of COM+, the stepping into the server side code was working fine! Including into the vb.dll C++ generated code. There were just other mysterious problems (crashing) running over night, so I wanted to give COM+ a try.

Any help appreciated! (Hope I didn't give anyone a headache ...)

Bryan
AnswerRe: COM+ (Enterprise Services) Debugging remotely Pin
buffbuh16-Aug-06 5:21
buffbuh16-Aug-06 5:21 
QuestionUsing COM component in Java application Pin
Will888888811-Aug-06 10:11
Will888888811-Aug-06 10:11 
AnswerRe: Using COM component in Java application Pin
Milton Karimbekallil15-Aug-06 18:32
Milton Karimbekallil15-Aug-06 18:32 
GeneralRe: Using COM component in Java application Pin
Will888888831-Aug-06 4:50
Will888888831-Aug-06 4:50 
AnswerJCom (Java-COM Bridge) Pin
Andre xxxxxxx21-Aug-06 8:51
Andre xxxxxxx21-Aug-06 8:51 
GeneralRe: JCom (Java-COM Bridge) Pin
Will888888831-Aug-06 4:50
Will888888831-Aug-06 4:50 
Question[Help] MFC ypelib wrappers for MSXML5 Pin
oaks, rbt9-Aug-06 10:12
oaks, rbt9-Aug-06 10:12 
QuestionDetecting video play Pin
pavan g9-Aug-06 2:00
pavan g9-Aug-06 2:00 
QuestionMapi Outlook express simple solution needed Pin
htel7-Aug-06 15:43
htel7-Aug-06 15:43 
QuestionCOM Pin
getsuha6-Aug-06 22:43
getsuha6-Aug-06 22:43 
AnswerRe: COM Pin
sunit510-Aug-06 23:30
sunit510-Aug-06 23:30 
QuestionBuilding an Office2K COM addin with VC++/ATL Pin
xollo5-Aug-06 3:57
xollo5-Aug-06 3:57 
AnswerRe: Building an Office2K COM addin with VC++/ATL Pin
sudeesh8-Aug-06 18:06
sudeesh8-Aug-06 18:06 
AnswerRe: Building an Office2K COM addin with VC++/ATL [modified] Pin
sudeesh8-Aug-06 18:06
sudeesh8-Aug-06 18:06 
QuestionHelp~~~ Pin
HuizhiZhao4-Aug-06 19:39
HuizhiZhao4-Aug-06 19:39 
AnswerRe: Help~~~ Pin
anu_885-Aug-06 1:44
anu_885-Aug-06 1:44 
GeneralRe: Help~~~ Pin
HuizhiZhao6-Aug-06 15:34
HuizhiZhao6-Aug-06 15:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.