|
-
Apr 26th, 2001, 04:07 PM
#1
Thread Starter
New Member
More COM+ Problems
Let me tell you what I have done.
I made an activex dll called car.dll, the class is called CCar and it has one property called Make that returns a string.
I added this to a COM+ application called test.
Then I made a simple client that had a form with a textbox and this code in the form load
Code:
Dim obj As Object
Set obj = CreateObject("car.CCar")
txtMake.Text = obj.Make
I then compiled and packaged this. Then I exported the COM+ application as an application proxy.
Took this all to another computer and installed it all without problem. Went to run the application and I get this error:
Run-time error '429':
ActiveX component can't create object.
I'd appreciate it VERY much if someone could tell me what the problem is here. :-)
-
Apr 27th, 2001, 08:17 AM
#2
Fanatic Member
did you install the COM+ application on the second computer, or are you trying to run the component remotely via DCOM?
If you are trying to run the component remotely then you will need to add the Server "VBR" file in the package, you might want to read up on MSDN about VB DCOM (if you have done all this already then sorry but the obvious is sometimes the best)
Crispin
VB6 ENT SP5
VB.NET
W2K ADV SVR SP3
WWW.BLOCKSOFT.CO.UK
[Microsoft Basic: 1976-2001, RIP]
-
Apr 27th, 2001, 11:21 AM
#3
Thread Starter
New Member
Guess I should read up
And yes, trying to access via DCOM, without actually knowing what I'm doing I might add. :P
-
Apr 27th, 2001, 12:10 PM
#4
Thread Starter
New Member
Ok, I did all the same stuff as I did before except this time I created the dll with the remote server files and included this in the package.
But now when I try to run it from the client I get this error:
Run-time error '424':
Object required.
Not to mention it asked me for the address of the server during installation, can that be pre-defined? I don't expect the users of the ap to know all that.
Why can't they make this easier to do :P
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
|