Error on RTC Page

pawanppawanp Member Posts: 90
edited 2011-09-05 in NAV Three Tier
I created C# project for Automation. But when ever I run ShowDialog function of the automation variable on RTC it gives me the following error. The same automation variable runs perfectly on Classic client.


This message is for C/AL programmers: The call to member Showdialog failed showing a modal dialog box or form when the application is not running in UserInteractive Mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.

Has anyone got the same error while developing COM Class and using it in NAV.?


Thanks
Pawan

Comments

  • Sam_MorrisSam_Morris Member Posts: 32
    Did you set the automation to run on the Client? In the RTC you have to specify whether to run it on the server or the client. On the server you can't run any dialogs. When you create you have to say:

    CREATE(Automation [,NewServer] [,OnClient])

    Where OnClient = TRUE
  • pawanppawanp Member Posts: 90
    Worked.. thanks!!! :D
Sign In or Register to comment.