7. Troubleshooting


Forecasts

  1. In some instances there is a need to copy the file ForecastPro.dll from the location \ThirdParty to C:\Windows\SysWOW64
  2. If the problem persists open up the Event Viewer, click on the Application node. If there are any recent messages containing the following text: SideBySide. This means that the redistributable package is missing.
  3. If you get this message in error_log you need to go to advanced settings on the web site in the IIS and make sure that “enable 32-bit applications” is “false” for releases 6.2-r13 and newer. For releases 6.2-r12 and older “enable 32-bit applications” should be true.

create

ForecastListeningService hangs with status “Starting”

You might need to alter the config file and add or edit the following values.

<appSettings> 
<add key="useListener" value="false" /> 
<add key="pollingInterval" value="30" /> 
</appSettings> 

It might also be necessary to alter the procedure dbo.run_forecasts_ws like this:

DECLARE @status_zero_wait_sec int = 40 (check with Daði to make sure about the figure) 

Windows Service unable to start the ForecastListeningService

In case an error occurs when installing the Forecast Service and double-clicking on ForecastListeningService brings up the following error we need to fix user permissions.

create

Edit local users and groups -> Manage User Accounts -> Advanced tab -> Advanced -> Groups under Local Users and Groups -> Double click on Users -> Add -> Choose correct location -> Add AGR user into Enter the object names to select and then “Check names” -> “OK”. This user needs to be an administrator.

create

Re-install of the forecast service

If it is necessary to re-install the forecast service (through running the installer again) it is necessary to uninstall the ForecastListeningService before. Steps: Start menu – Command Prompt – Run as Administrator. Then run the following command (check the name of the service in case there are more than one on the machine).

create

Refresh Windows Services and ForecastListeningService should be gone from the list.


Updates and deletes do not work in AGR

On some IIS Installations, usually if Navision is installed on the same machine, a component called WebDAV is installed on the server. This component modifies how the server processes certain HTTP commands, notably PUT and DELETE requests.

create

Remove WebDAV for AGR site

create

  • When WebDAV is installed on IIS it is by default enabled in all websites. It can easily be disabled for each website, doing so will fix this problem.
  • To disable WebDav go to IIS, AGR website in the connection tree, then double click modules.
  • Find the WebDAV module in the list, right-click and select remove.
  • If there are still errors go back to IIS, AGR website in the connection tree, then double click Handler Mappings. Find the WebDAV module in the list, right-click and select remove.

Note: This only removes the module from the AGR Application, any other web application (like NAV) will not be affected.

Note: This can also be done by editing the file web.config in the web-application folder.