2026-11-27

Sage 100: Access from RemoteApp on Server 2012 R2

Publishing Sage 100 as a RemoteApp launches the ProvideX interpreter instead of Sage — or fails with Error #12. Here is the exact shortcut argument to publish for Standard and Advanced, and the Server 2016 update that fixes Error #12.

You have RDS running on Server 2012 R2, Sage 100 works perfectly inside a full RDP session on that server — and the RemoteApp you published launches the ProvideX interpreter window instead of Sage 100. RemoteApp does not run your desktop shortcut. It runs the executable you publish, with the arguments you give it, and a bare pvxwin32.exe with no arguments is just the ProvideX interpreter waiting for instructions. The whole fix is publishing the right command line — and the right command line depends on your edition, which is where most attempts go wrong, because the widely-circulated example is the Advanced line and it does not apply to Standard.

The fix

  1. Install the Sage 100 workstation client on the RDS host itself. The command line only runs Sage 100 — it does not install the components it needs. Publishing from a server without the client installed cannot work.
  2. Prove it locally first. Log on to the RDS host in a full RDP session and launch Sage 100 from its desktop shortcut. It must open and log in cleanly there before RemoteApp enters the picture. Every failed case in the thread that skipped this step ended up back at it.
  3. Copy the working shortcut's Target — do not type a command line from a forum post. On the RDS host, open the Properties of the Sage 100 shortcut that works and copy the executable path and the startup argument exactly. For Sage 100 Standard the Target format is:

    "...\MAS90\Home\pvxwin32.exe" -hd ..\launcher\sota.ini ..\soa\startup.m4p

    The ..\soa\startup.m4p portion is the Sage 100 startup program — it is the piece whose absence leaves you staring at the ProvideX interpreter.

  4. Publish that executable as the RemoteApp and set the RemoteApp properties to always use the command-line parameters you copied. Do not publish the shortcut (.lnk) file itself, and do not publish pvxwin32.exe with no parameters.

  5. Test as a real remote user, not as the publishing admin: the published app should open straight to the Sage 100 login, running on the server but appearing on the user's own desktop — which is the entire point of RemoteApp over a full RDP session.

The original poster confirmed this worked on Server 2012 R2 with Sage 100 Standard 2014: the argument on the RDS server's own shortcut was very similar to the one in the post he had found, and copying the server's own version — rather than debating the forum version — settled it.

About the "what port does Sage use?" question

On Standard, there is no port in the launch line and none to find — Standard does not launch as a client/server connection. The server name and port only exist in the Advanced command line (next section). If you are hunting for a port to put in a Standard RemoteApp, you are reading an Advanced recipe.

Per-context variants

Sage 100 Advanced — a different command line

Advanced launches through the client/server argument instead of the Standard startup form. The documented RDS publishing pattern for Advanced is: publish the workstation pvxwin32.exe on the RDS server, check "Always use the following command-line parameters," and use:

../launcher/sota.ini *Client -ARG "<Server Name>" "<Port>" "MAS 200"

…substituting your application server name and its port. This is the line the original poster had found — accurate, but only for Advanced. Using it on Standard, or the Standard line on Advanced, publishes a broken app.

Server 2016: "Unable to initialize lead program. Error #12: File does not exist (or already exists)"

A follow-on case in the same thread: Sage 100 Standard 2016 published from Windows Server 2016, with the correct -hd ..\launcher\sota.ini ..\soa\startup.m4p argument, failing with Error #12. The cause is a Windows defect, documented by both Sage Support in the thread and Sage KB: on Server 2016, the working directory of RemoteApps is set to %windir%\System32 regardless of the application's directory. Sage's argument is relative (..\launcher, ..\soa), so from System32 it resolves to nothing — Error #12.

  • Fix: install Windows Update KB4041688 (OS Build 14393.1794, October 17, 2017) or any later cumulative update — it contains the working-directory correction. Check your build with Winver (Start > Run > winver). Sage KB's stated workaround before the update was to host the RemoteApp on Server 2012 instead.
  • Do not chase compatibility mode for this one. The affected user tried compatibility modes for Windows 95/98/XP/7/8 and Run as Administrator on pvxwin32.exe, in combination, and Error #12 never moved. The update is the fix.

RemoteApp starts, then errors or stops on permissions

Unconfirmed check (not established in the source thread): some Sage KB guidance for RemoteApp startup errors discusses running the workstation with elevated rights. Treat any Run-as-Administrator or console-flag change as an unconfirmed step to test in your own environment, not as part of the confirmed fix above.

Black desktop behind the RemoteApp (Server 2012, Advanced 2013)

A separate report (unconfirmed in the source thread for this page) describes a black desktop behind a working RemoteApp where a compatibility-mode setting on the shortcut was implicated. Treat this only as an unconfirmed check: if a RemoteApp misbehaves visually, look at whether the shortcut carries a compatibility-mode setting before changing anything.

Causes / why this happens

  • RemoteApp runs what you publish, nothing more. A desktop shortcut bundles an executable, arguments, and a start-in folder. Publish only the executable and you have published one-third of the launch.
  • The argument is relative, so the working directory is load-bearing. ..\launcher\sota.ini and ..\soa\startup.m4p resolve relative to where the process starts. Anything that starts the process somewhere else — the Server 2016 System32 defect above all — breaks a command line that is letter-perfect.
  • Editions launch differently. Standard runs the startup program locally; Advanced connects to a server with *Client -ARG. Recipes cross-posted between editions are the most common source of "the parameter doesn't work" reports — including in the original thread, where the found parameter turned out to be Advanced-only.

What doesn't work

  • Publishing pvxwin32.exe bare. You get the ProvideX development/interpreter window — the original symptom — every time.
  • Copying a command line from another edition or another site's post instead of the shortcut on your own RDS host. Your server's shortcut already encodes your install path and edition; it is the authoritative source.
  • Publishing before the client works in a full session on the host. RemoteApp cannot fix an install that does not run locally; it can only hide the desktop around the same failure.
  • Compatibility-mode roulette for Error #12 on Server 2016. Exhaustively tried in the thread; the Windows Update is the documented resolution.

Affected versions

  • Confirmed: Sage 100 Standard 2014 on Windows Server 2012 R2 (original case); the shortcut-copy method is edition- and version-general.
  • Error #12 variant: Sage 100 Standard 2016 on Windows Server 2016 before OS Build 14393.1794 (KB4041688).
  • Advanced argument: documented for Sage 100 Advanced in RDS publishing (v4.4–2016 era threads, same form still in use).
  • Sage's Standard shortcut format (pvxwin32.exe with -hd ..\launcher\sota.ini ..\soa\startup.m4p) matches the argument confirmed in the thread.

Prevention / best practice

  • Keep a screenshot or text copy of the working server shortcut's Target in your server documentation. It is the recovery answer for every future publishing, migration, and shortcut problem.
  • After any Sage 100 upgrade or workstation-setup reinstall on the RDS host, re-copy the shortcut Target into the RemoteApp definition — upgrades can change paths and arguments, and the published app will not update itself.
  • Patch the RDS host on the normal Windows cadence; the Server 2016 working-directory defect is a reminder that RemoteApp behaviour is partly Windows' behaviour.
  • Publish for a pilot user first. RemoteApp problems are per-user-profile problems as often as they are server problems.

Related help

Still stuck? Send us a screenshot of the error, we will diagnose it for free.

Digit Masters has supported Sage 100 and Sage 300 since 1997. Send the screenshot through our contact page or to contact@digitmasters.com, or call (800) 965-4262.

Ready to Optimize Your Sage ERP?

Speak with a CPA-led Sage consultant. Free initial consultation — English or Chinese.

Get a Free Consultation