|
-
Nov 12th, 2002, 07:15 AM
#1
Thread Starter
New Member
error 429 While trying to access COM+ component Through Win98 client
I am trying to run a vb exe on win98 client which is accessing a com+ components through MSI. The com+ component is installed on win2000 server and the msi is prepared by exporting the Application Proxy. I have also installed DCOM98 and MDAC 2.7 on the win98 machine. While accessing the exe it throws the error 429 "ActiveX cannot create Object". The error is thrown while the exe is trying to access the ObjectContext used in the dll.
The following is the sample code used by the ActiveX dll.
/**********************************************************/
Public Function General_Test_Method() As String
On Error GoTo errhandler
Dim ctxObject As ObjectContext
Set ctxObject = GetObjectContext()
General_Test_Method = "String from General_Test_Method"
ctxObject.SetComplete
Exit Function
errhandler:
ctxObject.SetAbort
Err.Raise vbObjectError, "MTSTest.clsTest.General_Test_Method", _
Err.Description
Exit Function
End Function
/**********************************************************/
The following is the vb application code used to access this method
/**********************************************************/
Private Sub Command1_Click()
On Error GoTo ErrorHandler
Dim obj As Object
Set obj = CreateObject("ComPlusTest.clsTest")
MsgBox obj.General_Test_Method
Set obj = Nothing
Exit Sub
ErrorHandler:
Set obj = Nothing
MsgBox Err.Description & ". The code failed at line : " & Erl, vbCritical
End Sub
/**********************************************************/
The above codes are copied from the Microsoft site and the instructions are strictly followed. Still the same error is occuring. The url for the above code is http://support.microsoft.com/default...en-us;q186342.
Please Help me to find the solution of this problem.
[B][COLOR=blue]
-
Nov 12th, 2002, 09:39 AM
#2
Lively Member
in the Project Properties of your DLL, did check:
Unattended Execution and Retained In Memory?
r u sure that the failed happen when VB trying create the Object Context or at some else place?
-
Nov 20th, 2002, 05:25 AM
#3
Frenzied Member
if the above don't work then try specifying the server on which to create the object:
VB Code:
CreateObject("MyProject.MyClass","MyServer")
and also . . .
(i) You made the COM+ application a server app (not a library one)
(ii) you have installed MSI 2 on the Win98 machine
-
Nov 20th, 2002, 05:26 AM
#4
Frenzied Member
and addendum: in COM+ use this
VB Code:
GetObjectContext.SetComplete
to vote on transactions rather than declaring at as an object et al
-
Nov 20th, 2002, 05:27 AM
#5
Frenzied Member
you also use VBR/TLB to remote your objects too - use the CLIREG.exe utility.
You get more control of how the object is remoted too.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|