Using Automation WithEvents at NAV 2009 Role Tailored Client

Hello together,

I’m struggeling to implement an automation server in a page object with the “WithEvents” trigger switched on.

The Role Tailored client crashes when opening the page in the client.

Has anyone ever tried to run an event in the client (not the service tier)?

Similar code is working in the classic client.

Looking at the event log I found:

System.Reflection.TargetInvocationException

Microsoft.Dynamics.Nav.Runtime.NavAutomation.Create(DataError errorLevel, Boolean newServer, Boolean clientSide)

Microsoft.Dynamics.Nav.BusinessApplication.Page1020825.OnOpenPage

Thomas

are you instantiating it at client or server when you call create(automation)?

I’m trying to instantiate it on the client as we need to get the events at the client, not at the server.