-
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. :-)
-
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)
-
Guess I should read up ;)
And yes, trying to access via DCOM, without actually knowing what I'm doing I might add. :P
-
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