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!
"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.
> After I installed COM Business Connector,I can't find it in the
> component services.
Search for axcom.dll in the filesystem
- Peter