Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Axapta4.0 COM Business Connector

81 views
Skip to first unread message

Flower

unread,
Feb 6, 2007, 10:44:00 AM2/6/07
to
During the installation of AX4.0,I selected the role COM Business
Connector,but when I use the following code to create COM object,it throws
the error:"COM object of class 'AxaptaCOMConnector.Axapta' could not be
created. Ensure that the object has been properly registered on computer
'DynamcisAX'"
static void Job1(Args _args)
{
COM com;
;
com = new COM("AxaptaCOMConnector.Axapta");
}
I used the command regsrv32 Axcom.dll to register,but it still throw the
same error .
How should I register the COM Business Connector?
Thanks a lot in advance!

Peter Lykkegaard

unread,
Feb 7, 2007, 6:20:05 PM2/7/07
to
Flower wrote:
> During the installation of AX4.0,I selected the role COM Business
> Connector,but when I use the following code to create COM object,it
> throws the error:

Did you install both .NET and COM versions?

> static void Job1(Args _args)
> {
> COM com;
> ;
> com = new COM("AxaptaCOMConnector.Axapta");
> }

From where do you use this piece of code?
Looks like X++ to me?

> I used the command regsrv32 Axcom.dll to register,but it still throw
> the same error .

Basically the installation program should do the trick when you're messing
around with AX4

> How should I register the COM Business Connector?

Check you're programming enviroment
If .NET use the .NET version
If COM install the COM version

hth/Peter

--
Hi! I'm a .signature *virus*!
Copy me into your ~/.signature to help me spread!


Flower

unread,
Feb 8, 2007, 3:28:00 AM2/8/07
to

"Peter Lykkegaard" wrote:

> Flower wrote:
> > During the installation of AX4.0,I selected the role COM Business
> > Connector,but when I use the following code to create COM object,it
> > throws the error:
>
> Did you install both .NET and COM versions?

Yes.But I just only installed COM Versions to another computer,it can't work
yet.


>
> > static void Job1(Args _args)
> > {
> > COM com;
> > ;
> > com = new COM("AxaptaCOMConnector.Axapta");
> > }
>
> From where do you use this piece of code?
> Looks like X++ to me?

Yes,I tested it using X++,but just now I tested it in asp environment using
the following code:
Set Axapta = Server.CreateObject("AxaptaCOMConnector.Axapta")
It can't work as well.


>
> > I used the command regsrv32 Axcom.dll to register,but it still throw
> > the same error .
>
> Basically the installation program should do the trick when you're messing
> around with AX4

After I installed COM Business Connector,I can't find it in the component
services.


>
> > How should I register the COM Business Connector?
>
> Check you're programming enviroment
> If .NET use the .NET version
> If COM install the COM version

I want to use COM and has installed the COM version only,but it can't work.

Peter Lykkegaard

unread,
Feb 8, 2007, 7:46:36 AM2/8/07
to
Flower wrote:

> After I installed COM Business Connector,I can't find it in the
> component services.


Search for axcom.dll in the filesystem

- Peter

0 new messages