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

Install only a dll on the AOS (GAC)

61 views
Skip to first unread message

Mariano Vicario

unread,
Dec 16, 2009, 10:55:01 AM12/16/09
to
Hi,

I have AOS in one PC, and the clients on others PC. I have install on the
aos server a dll on the GAC. Then I open the AOT on the client, and I add the
reference in AX. But it dosent works, it dosent compile. If I install this
dll on each client it works fine, on the bin folder. There is any way to only
install a dll on the AOS???

Regards,
Mariano Vicario

Klaas Deforche

unread,
Dec 16, 2009, 11:31:01 AM12/16/09
to
Hi Mariano,

If I'm not mistaken, you only need the dll in the GAC of the AOS in order
for it to work.
However, if you want to compile it on a machine, you need the dll in the
client bin directory on the computer you are compiling on. This doesn't mean
you need in all client directories, only the one you are using to compile.

Please try it that way.
Hope it helps.

Best regards,
Klaas.
----------------
http://www.artofcreation.be

Mariano Vicario

unread,
Dec 16, 2009, 1:13:01 PM12/16/09
to
:(

It does not work. It compiles now, but it does not work. I get the following
message now: "ClrObject static method invocation error."
Of course if i put this dll on the bin folder works.

Regards,
Mariano Vicario

Klaas Deforche

unread,
Dec 17, 2009, 4:21:01 AM12/17/09
to
Hi Mariano,

When you add the reference, are you adding the assembly for the GAC?
You should select your dll from the grid, *not* click the browse... button.

Regards,

Patrice

unread,
Dec 17, 2009, 7:27:02 AM12/17/09
to
Also you may want to check where the AX Class that calls into this DLL runs.
If this is server side it should work. If it runs client side it coudl
explain why you have this problem...


--
Patrice


Luegisdorf

unread,
Dec 18, 2009, 10:36:01 AM12/18/09
to
Hi Mariano

I going agree with Patrice; looks like your code which is handling the CLR
stuff is executed on the Client and not on Server.

You can either change the RunOn-property on the MenuItem or on your Class or
you can encapsulate the CLR stuff in a static method which has the modifier
''server'.

Best regards
Patrick

"Patrice" wrote:

> .
>

0 new messages