Problem installing NAS during "installasservice"

rsaritzkyrsaritzky Member Posts: 469
Hi,

I'm installing a new NAS on Server 2007/SQL 2008. I did my "due diligence" and read the "how to install NAS" here on MIBUSO. I followed the steps:

1. Ran the setup from the CD. Note that the document here on MIBUSO says "launch the \Nas\setup.exe" but in NAV2009, the setup file is "Microsoft Dynamics NAV Classic Application Server.msi"

2. Copied the NAS directory created by the first step into a new directory.

3. Created a NASSTART.CMD file for manual installation of a second NAS:
nassql.exe appservername=LIBERTYNAS, NETTYPE=TCP, servername=NAVLIB,database=SIGMA60,company="MyCompany",nettype=tcp,startupparameter=”IMPORT”,
objectcache=40000,installasservice

From a command prompt, I navigated to the directory where the NAS files were along with NASSTART.CMD and ran NASSTART.CMD.

I received a Windows error window with the following information:

Problem signature:
Problem Event Name: APPCRASH
Application Name: nassql.exe
Application Version: 6.0.29626.0
Application Timestamp: 4a849ad7
Fault Module Name: nassql.exe
Fault Module Version: 6.0.29626.0
Fault Module Timestamp: 4a849ad7
Exception Code: c0000005
Exception Offset: 00076601
OS Version: 6.1.7600.2.0.0.272.7
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789

In addition, the command prompt window displayed a message:

"The operating system cannot access to the file LIBERTYNAS".

I'm wondering if the install-as-service failed because of some permissions (access) error? I am logged in as a user with Administrator permissions.

Has anyone seen this error?
Ron

Answers

  • rsaritzkyrsaritzky Member Posts: 469
    As a followup/possibly related question, is it necessary to change the "ID" property of the existing NasHandler trigger in Codeunit 1 to 99? Out of the box, this ID is 1.
    Ron
  • rhpntrhpnt Member Posts: 688
    NAS ALWAYS installs as a service - no need for ANY additional copy/paste work (especially in v6).

    Uninstall your current installation and repeat it using the OFFICIAL MS documentation for NAS!
  • kinekine Member Posts: 12,562
    Server 2007/SQL 2008
    ? I do not know Server 2007... If you are using Windows server 2008/2008 R2, you must be sure that you have run the .cmd "As Administrator"...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • rsaritzkyrsaritzky Member Posts: 469
    Thanks to rhpnt and Kamil for the responses. The "official" documentation (the online help) for NAV2009 refers you to the "Microsoft Dynamics NAV 5.0 Developer and Installation Guides" pdf, which parallels the installation steps I took. Specifically, that guide says "To install more than one NAV Application Server, you must copy all the files that belong to the previously installed NAV Application Server to the folder where you want to store the second instance of
    NAV Application Server. After copying the files, you must use the Microsoft DOS command line to install NAV
    Application Server as a service and set the necessary parameters."

    That being said, I took your advice to heart, and rather than running the .msi file directly, I did uninstall and ran the install from the main setup executable on the NAV2009 DVD. This allowed the initial application server to be reinstalled and the app server service started OK and the app server manager snapin is now running correctly. My next step will be to install a second app server, but for now, I have one app server up and running.

    Thanks to both for your input.
    Ron
  • jlandeenjlandeen Member Posts: 524
    One of the key points that was in this post is the note about "run as administrator". I have been using (and reusing) a batch file to install things like this and it has worked great. But I realized I hadn't used it on any servers running Windows 2008 and was bashing my head against the wall with the error that it cannot access the file "<appserrvicename>" when I was trying to run the modified batch file from the command prompt.

    However it was all resolved and everything worked as expected once I started the command prompt as administrator (start -> Accessories -> Command Prompt *MUST RIGHT CLICK AND SELECT "Run as administrator" menu option*).
    Jeff Landeen - Sr. Consultant
    Epimatic Corp.

    http://www.epimatic.com
  • kinekine Member Posts: 12,562
    Yes, UAC is a pain when you forgot...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
Sign In or Register to comment.