problem with application server in 4.0 SP1

peterke1974peterke1974 Member Posts: 23
Hello,
I'm trying to setup an application server, but I'm having a few problems with it.

When I look in the eventlog, I see the following : "The service could not be started with startup parameter LBB"

The next message in the eventlog is the following: "The Navision Application Server LBBNAS could not initialize properly.
The server will attempt to initialize every 30 seconds until this is successful.".

In codeunit 1 I added the following:
IF (COPYSTR(Parameter,1,3) = 'LBB') THEN BEGIN
MESSAGE('This is a NAS test');
CODEUNIT.RUN(50020);
END;

I can see the message in the eventlog every 30 seconds and codeunit 50020 runs every 30 seconds.

Another strange thing is that I cannot start the Application server in the application server manager.
Sometimes "access denied" flashes very quickly on the screen.
I added a windowsuser wich is a super-user.
I can start the application server without any problem in the services.

I allready tried it on 2 different servers, both with the same result.

Does anyone know what I'm doing wrong?

Thanks in advance
Peter

Comments

  • ara3nara3n Member Posts: 9,256
    I don't know where you put your code, but put the following code in there

    CGNASStartedinLoop := true;

    THe reason you are getting the error is because of


    END ELSE
    ERROR(Text018,Parameter);
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • DenSterDenSter Member Posts: 8,307
    The only thing I use the NAS MMC snap in for is setting the parameters. I always start and stop them from the Services window. You can add services to the snap-in so you don't have to open them both.

    Make sure your code is in the CASE Parameter OF structure. All you should do in there is start the codeunit. If you make the codeunit single instance, you can start a timer object in it, and in the timer event you program what you need to do.
  • peterke1974peterke1974 Member Posts: 23
    ara3n wrote:
    I don't know where you put your code, but put the following code in there

    CGNASStartedinLoop := true;

    THe reason you are getting the error is because of


    END ELSE
    ERROR(Text018,Parameter);

    Thanks a lot, it works fine now \:D/
Sign In or Register to comment.