Hi,
I have had this problem as well, and I found a solution that works for me.
when the dll and tlb is created with regasm.exe it needs to be in the cside client folder so NAV can see it. Otherwise you might have to register it in the global assembly cash. But I have not tried that.
So I copted the files to the client folder and ran this statement, and now it works.
Comments
But is is possible to make a program that can be called from the command-prompt?
Or via Automation?
This is needed for importing files without user-interaction.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Freelance Dynamics AX
Blog : http://axnmaia.wordpress.com/
Freelance Dynamics AX
Blog : http://axnmaia.wordpress.com/
I have tried the regsvr32 but then I get the error the startadress for dllregisterserver could not be found.
The regasm worked but I could not found the automation in Navision, What name should i have?
I have written the following in dosprompt
regsvr32 "C:\Documents and Settings\malasto\Mina dokument\mina\encoding\COMEncodingConverter.dll"
regasm COMEncodingConverter.dll
you sould have the name COMEncodingConverter in automation list.
Freelance Dynamics AX
Blog : http://axnmaia.wordpress.com/
When i registered it, it said
the types was registered.
What am I´m doing wrong?
have you installed .NET 2.0 ?
Can you run the GUI version ?
Freelance Dynamics AX
Blog : http://axnmaia.wordpress.com/
Yes
have you installed .NET 2.0 ?
Yes
Can you run the GUI version ?
yes I can run the exe file
I used the wrong syntax to reg. the dll file...
The right syntax is
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>regasm /tlb:COMEncodingConverter.t
lb COMEncodingConverter.dll
What am I doing wrong?
I have looked in this link
http://demiliani.com/blog/archive/2005/09/19/2965.aspx but no success.
I failed in the step gacutil, you need a strongname..
](*,) ](*,) ](*,) ](*,) ](*,)
Have you done this ? It works for me.
Do you want the source code ?
Freelance Dynamics AX
Blog : http://axnmaia.wordpress.com/
CREATE(autEnc);
Freelance Dynamics AX
Blog : http://axnmaia.wordpress.com/
you can download source code in http://dynamicsuser.net/files/folders/n ... 85851.aspx
Freelance Dynamics AX
Blog : http://axnmaia.wordpress.com/
magnus.lauberg@systeam.se
I got also a problem with the GACUTIL /i COMEncodingConverter.dll
I got: FAILURE adding assembly to the cache: Unknown error.
Is youre problem solved?
Frank
Have you solved your problem?
Freelance Dynamics AX
Blog : http://axnmaia.wordpress.com/
I have had this problem as well, and I found a solution that works for me.
when the dll and tlb is created with regasm.exe it needs to be in the cside client folder so NAV can see it. Otherwise you might have to register it in the global assembly cash. But I have not tried that.
So I copted the files to the client folder and ran this statement, and now it works.
Best
Jan