NAS Problem (No service could be started)

raieesraiees Member Posts: 33
Hi All,
I am using Navision 3.70 I have installed NAS and put a message in NASHandler(ID 99) function. Event Manager shows the message

[Finally NAS logged in.....]

but after this when I try to call my codeunit, but it gives warning

[No service could be started with the Start-Up Parameter MYEMAIL]

[The Navision Application Server NAS could not initialize properly.
The server will attempt to initialize every 30 seconds until this is successful.]

[The Breakpoints already exists.

Identification fields and values:

Object ID='50001',Object Type='Form',Trigger Line='4',Code No='7']

I have checked everything codeunit is also singleInstance. I have reinstall the NAS as well
Please help me guys....
Thanks in Advance

Answers

  • nunomaianunomaia Member Posts: 1,153
    In Function NASHandler do you handle parameter MYEMAIL ?
    Nuno Maia

    Freelance Dynamics AX
    Blog : http://axnmaia.wordpress.com/
  • raieesraiees Member Posts: 33
    yes I have this code...

    IF COPYSTR(UPPERCASE(NASID),1,7) = 'MYEMAIL' THEN BEGIN
    MESSAGE('Finally NAS logged in.....');
    CODEUNIT.RUN(50000);
    END;

    this 50000 codeunit is not running but event viewer shows the message
  • nunomaianunomaia Member Posts: 1,153
    Add line CGNASStartedinLoop := TRUE;
    Nuno Maia

    Freelance Dynamics AX
    Blog : http://axnmaia.wordpress.com/
  • nunomaianunomaia Member Posts: 1,153
    You could also parameter to
    CASE Parameter OF
      'MYEMAIL': BEGIN 
        ....... 
       END
    
    Nuno Maia

    Freelance Dynamics AX
    Blog : http://axnmaia.wordpress.com/
  • raieesraiees Member Posts: 33
    nunomaia wrote:
    Add line CGNASStartedinLoop := TRUE;

    Thank you very much Nunomaia.
    I have added the line and now it is working. :D

    Could you let me know what exectly the code does.
    Thanks
  • nunomaianunomaia Member Posts: 1,153
    That line informs that parameter has handled. If you look at last condition in that function, you will see if there is a parameter that wasn’t handled it generates an error. You handled parameter but never informed that has correctly handled. If you don’t want to use that line of code you can put your parameter in last CASE.

    Please change subject to solved. :wink:
    Nuno Maia

    Freelance Dynamics AX
    Blog : http://axnmaia.wordpress.com/
  • raieesraiees Member Posts: 33
    Got it! =D>
    Thank you very much
Sign In or Register to comment.