Finding errors when using NAS
The Navision Application Server, or NAS, does everything a normal NAV client can do, except that it doesn't show anything on the screen. This can present challenges to figuring out what has gone wrong when running your code using NAS. This recipe will show you how to debug this type of code.
Getting ready
You must already have the NAV Application Server installed on the machine on which you are working.
How to do it...
Copy your developer license into the install directory for the application server. On a typical install this is
C:\Program Files (x86)\Microsoft Dynamics NAV\60\Application Server
. The license file should be namedfin.flf
.Open a command prompt.
Run the following command:
"Path to Application Server\nassql" debug, appservername="NAS", servername="Your Server Name", database="Your Database Name",company="Your Company Name", startupparameter="NEP-", objectcache=32000, nettype=tcp
How it works...
The NAS Snap-in Console does not allow you to start an NAS...