NAS without NAV client

kubachojkubachoj Member Posts: 10
Hi !

I have installed NAS 4.0, NDS 4.0 and client NAV 4.0. All SP1.
I try run codeunit from c# application.
It work, buy only when is run client NAV.

What is reason, then i can't run codeunit from my application in c#, when don't work client NAV ?

Regards
Jakub Chojnacki

Comments

  • kinekine Member Posts: 12,562
    1) How you are connecting C# to the Navision?
    2) You are not able to run C/AL code within C#, you can only send some command to NAS (or NAV Client) to run this code
    3) Think about NAS as about Navision Client without GUI, it will be easier to imagine what it is...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • kubachojkubachoj Member Posts: 10
    I use codeunit 1 , next NAshandler, and codeunitxxx.run.
    codeunitxxx insert record in table A.
    This work, when work client Navision.
    If NAS is no GUI client, then this should work without standard client, too. But doesn't.

    Some idea ?

    Jakub Chojnacki
  • kinekine Member Posts: 12,562
    1) Check the Event log for warnings, info and errors when running NAS
    2) YOu need to check if: the NAS started successfully or not
    3) If started, that it runs the correct CU (Through NASHandler in CU1)
    4) This CU must be singleinstance and have someething which activate it (timer, some automation with event - for example communication component etc.)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • ara3nara3n Member Posts: 9,257
    Also your code should not display anything visual, like a form or window.update dialog.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • kinekine Member Posts: 12,562
    If you use such a control, you will see it in Event log...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
Sign In or Register to comment.