Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT

Qlik Sense Repository service does not start after an upgrade: Could not load file or assembly Qlik.Sense.Logging

100% helpful (4/4)
cancel
Showing results for 
Search instead for 
Did you mean: 
Ranganath_DR
Support
Support

Qlik Sense Repository service does not start after an upgrade: Could not load file or assembly Qlik.Sense.Logging

Last Update:

Jan 9, 2024 5:07:38 AM

Updated By:

Sonja_Bauernfeind

Created date:

Jan 9, 2024 5:07:38 AM

After a Qlik Sense upgrade, the Qlik Sense Repository service fails to start. The following error is logged in the Windows Application Event log:

Description: The application requested process termination through System.Environment.FailFast(string message).
Message: Unhandled exception: Could not load file or assembly 'Qlik.Sense.Logging, Version=37.3.0.0, Culture=neutral, PublicKeyToken=1a848309662c81e5' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
System.IO.FileLoadException: Could not load file or assembly 'Qlik.Sense.Logging, Version=37.3.0.0, Culture=neutral, PublicKeyToken=1a848309662c81e5' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
File name: 'Qlik.Sense.Logging, Version=37.3.0.0, Culture=neutral, PublicKeyToken=1a848309662c81e5'
at Repository.QRSService.Start(Action`1 terminate)
at

Resolution

The initial recommendation is to repair the installation. See How to repair an installation.

If the repair does not resolve the problem:

  1. Copy the Qlik.Sense.Logging.dll from another environment of the identical Qlik Sense version, including patch version. The file can be located in: [Installation Qlik Sense folder]\Qlik\Sense\Repository\
  2. Place the copied file in the same folder on the failing server
  3. Restart the Qlik Sense Repository service.

Cause

The Qlik.Sense.Logging.dll present in [Installation Qlik Sense folder]\Repository\ was missing required inforamtion. 

 

Environment

Qlik Sense Enterprise on Windows 

Labels (1)
Comments
giociva
Partner - Creator
Partner - Creator

I experienced this issue also in a patching scenario for Aug 2023 Patch  and not only during a release upgrade. Confirm that installation repair resolved. 

Thank you.

flaurntiu
Partner - Contributor III
Partner - Contributor III

I had the same issue at one of our customers after updating from August 2022 Patch 17 to February 2024 IR. 

Original situation: Qlik sense Enterprise on Windows release August 2022 with Patch 17 was installed on the Windows 2019 server. All the latest patches were applied. The installation was done in the default folders.

  • First I ran the Qlik QPI tool v1.4 to unbundle the Postgres installation and upgrade it from v9.6 to v14.
  • Then checked if everything worked as it should. No issues in QMC and HUB
  • Uninstalled the old Postgres v9.6 using the msi from the c:\ProgramData\ Package Cache folder, as described in this document
  • Again checked if everything worked as it should. No issues in QMC and HUB
  • Installed Qlik Sense Enterprise on Windows release February 2024 IR
  • After installation everything looked fine and services started. However the Qlik Sense Repository Service was shut down after 10-20 seconds. No logging found for this in Qlik logs. But an error in the Event viewer.

Performed a repair of the installation as described and it worked.

 

karthiksrqv
Partner - Creator II
Partner - Creator II

@Ranganath_DR ,

When is this issue planned to be resolved? Without needing a repair or a manual copy of the DLL? The issue still remains even with Patch 4 of Qliksense Feb 2024 (Enterprise on Windows).

karthiksrqv
Partner - Creator II
Partner - Creator II

We faced the issue highlighted in this article and out of the 2 options only a repair solved the issue.

When we use the other option of replacing the Qlik.Sense.Logging DLL. It then surfaces a new issue : The error looks similar to the one noted above, but now, it shows for another DLL

Unhandled exception: Could not load file or assembly 'Qlik.Sense.Communication, Version=37.12.0.0

The only reliable way is to do a repair.

The version we upgraded to was February 2024 Patch 4.

 

@Ranganath_DR , Can you please let us know about plans to resolve this error as a part of the February 2024 installer?

A repair is time-consuming. Hence, the above query.

Sangeeta
Contributor II
Contributor II

We faced same issue while upgrading from Nov2023 to May2024.

It was fixed with repair as described.

flaurntiu
Partner - Contributor III
Partner - Contributor III

We had another two updates that experienced the same issue. One from Aug. 2022 Patch 17 and one from Feb. 2023 IR. Both were upgraded to the Feb 2024 release.

ifytra
Contributor III
Contributor III

We faced the same issue mentioned above after upgrading from QS May 2022 P2 to QS February 2024. We have found out that certain dll's in <INSTALLATION DIRECTORY>\Qlik\Sense\Repository  folder from a healthy test environment had different timestamps from the one having issues. After replacing those, the Repository service started successfully.

Version history
Last update:
‎2024-01-09 05:07 AM
Updated by: