Error: "1904. Module path and file failed to register. HRESULT -##########. Contact your support personnel.", when installing Sage 100 or Workstation Setup

Summary

Error: “1904. Module failed to register. HRESULT – . Contact your support personnel.”, when installing Sage 100 or installing the Workstation Setup for Sage 100 Example: “Error 1904.Module C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects enterprise XI 4.0\win32_x86\crtslv.dll failed to register. HRESULT -2147010895. Contact your support Personnel. ” The file mentioned in “failed to register” message could be any one of the following: crtslv.dll, pageobjectmodel.dll, reportrenderer.dll, saxmlserialize.dll, commonobjmodel.dll, objectfactory.dll, saxserialize.dll, undomanager.dll, datadefmodel.dll, sacommlayer.dll, cubedefmodel.dll, rptdefmodel.dll, rptcontrollers.dll, requestmodel, clientdoc, exportmodellev.dll, prompt.dll, or dtsagent.dll.

Cause

This issue can occur when one or more of the following conditions is true:

  • File is not installed correctly
  • dll/ocx is not register properly in Windows
  • File is damaged
  • Other programs, including memory-resident and anti virus programs, are running and using any version of the file
  • User or account does not have the proper Windows security or permissions
  • Windows updates were installed but Mandatory reboot has not occurred

If error occurs during Sage 100 workstation install:
If receiving a Sage 100 Workstation Installer Information message: “Error 1904. Module C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\crtslv.dll failed to register. HRESULT -2147010895. Contact your support personnel.”, this can be caused by missing prerequisite(s) including .NET Framework 3.5.

NOTE: If error mentions Error: “1904. Module ..\mas90\CM\SOTAWIZ.OCX failed to register. HRESULT -2147220473. Contact your support personnel” see Related Resources.

Resolution

CAUTION: This solution requires advanced knowledge of your network. Contact your system administrator for assistance. Modifying Windows security incorrectly can severely affect system operations. Sage is not responsible for operation issues caused by incorrectly modifying your Windows security. Always create a backup of your data before proceeding with advanced solutions. 

CAUTION: This solution requires advanced knowledge of your computer’s operating system. Contact your system administrator for assistance. Modifying your Windows Registry incorrectly can severely affect system operations. Sage is not responsible for operation issues caused by incorrectly modifying your Windows Registry. Always create a backup of your data before proceeding with advanced solutions.

NOTE: Error 1904 is a well-known Windows operating system error. Microsoft’s support web site and various on-line resources discuss and cover various instances of DLL registration failure for a variety of reasons.

Resolution 1: Click Ignore. In some situations, this completes the client installation and Sage MAS 90 or 200 functions correctly Resolution 2 The file referenced in the error message is not registered by windows:
  • Register the dll or .ocx file manually:
  1. open Command Prompt (Run as Administrator).
  2. from the the command line type regsvr32 /s /i then enter in the exact file and path in the error message
    • Example
      • c:\> regsvr32 /s /i C:\Windows\SysWOW64\msxml4.dll press Enter
  3. Continue on with the install as normal
Resolution 3: Reinstall with additional security/permissions opened:

 NOTE: For Windows 11, disable Smart App Control 

  1. Make sure to map a drive to the shared location above the “..\MAS90” directory, on the server where Sage 100 ERP is installed
  2. Log onto the workstation as an Administrator with Full Control of the “..\MAS90” directory on the server where Sage 100 ERP is installed
  3. From the workstation’s Windows desktop, open Start, Control Panel, User Accounts, Change User Account Control Settings (if the option is not there, use the Search Control Panel field to search for “Change User Account Control Settings”) to set it to “Never Notify”
    (Note: This may require a reboot. On Windows Vista machines, this is a radio button option)
  4. Access the mapped drive location (e.g. “X:\\MAS90\WkSetup” (where “X” is the mapped drive letter)
  5. Right-click Autorun.exe and select “Run as Administrator”, then install Workstation Setup

Resolution 4:

Register the file manually. To register a specific ActiveX object, follow the steps below:

  1. Click the Start button and click Run
  2. In the Open field, type the command below, where [path and file] are specified in the error:
    REGSVR32
  3. Click OK. A message stating that the file was registered should appear

Resolution 5:

Consider re-acquiring the installation files, then extract again (if needed) and reinstall.

Resolution 6:

If Windows Updates were recently installed, restart the machine getting the error and then install Sage 100.

Workstation install error during SAP Crystal Reports files:

  1. Cancel workstation installation
  2. See Related Resources for more details on Sage 100 Workstation install
  3. re-start Sage 100 Workstation install by selecting the Autorun.exe (right-click and select “Run as Administrator”) instead of Workstation.MSI file which does not install required prerequisites

If error mentions Error: “1904. Module ..\mas90\CM\SOTAWIZ.OCX failed to register. HRESULT -2147220473. Contact your support personnel” see Related Resources.

Resolution 7:

Verify the following DLL’s exist under C:\Windows\System32\. If missing, copy from another workstation then rerun installation

  • vcruntime140_1.dll
  • vcruntime140_clr0400.dll

Resolution 8:

  • A VCRuntime140.dll error indicates a problem with the 2015 version of the Visual C++ Redistributable. Because there is a known conflict between the 2017 version and the 2015 version, please follow these steps
    • Open Programs and Features form Control Panel
    • Uninstall the 2017 version of the C+= Redistributable, if that is installed on your System
    • Then from the link below, download and install the 2015 version, then once that is installed, download and install the 2017 version]
      • https://learn.microsoft.com/en-GB/cpp/windows/latest-supported-vc-redist?view=msvc-170
    • Then, restart your PC