Views:

Behavior:
When trying to print with DocuWare Printer or Import documents an error message is displayed in the system tray:

The ADO.NET provider with invariant name 'System.Data.SqlServerCe.4.0' is either not registered in the machine or application config file, or could not be loaded. See the inner exception for details

If you try to scan a document, this message is shown:
Queuing document failed. Please refer to the log file for details.



Solution:
A third-party application damaged a necessary .NET Data Provider. To solve this please perform these steps:

  1. Backup the file "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Config\machine.config"
  2. Open the file and search for the section <DbProviderFactories>.
  3. Amend/Replace this section as shown below:
    ...

    <system.data>
                    <DbProviderFactories>
                                    <add name="IBM DB2 for i5/OS .NET Provider" invariant="IBM.Data.DB2.iSeries" description=".NET Framework Data Provider for i5/OS" type="IBM.Data.DB2.iSeries.iDB2Factory, IBM.Data.DB2.iSeries, Version=12.0.0.0, Culture=neutral, PublicKeyToken=9cdb2ebfb1f93a26"/>
                                    <add name="Microsoft SQL Server Compact Data Provider" invariant="System.Data.SqlServerCe.4.0" description=".NET Framework Data Provider for Microsoft SQL Server Compact" type="System.Data.SqlServerCe.SqlCeProviderFactory, System.Data.SqlServerCe, Version=4.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91"/>
                    </DbProviderFactories>

    </system.data>
  4. Restart the service DocuWare Desktop Service.

Alternatively:
Install Microsoft SQL Server Compact 4.0: https://www.microsoft.com/en-us/download/details.aspx?id=17876