Skip to main content

QlikView Distribute to cloud fails: The type initializer for System.IdentityModel.Tokens.Jwt.JsonExtensions threw an exception.

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
Damien_Villaret
Support
Support

QlikView Distribute to cloud fails: The type initializer for System.IdentityModel.Tokens.Jwt.JsonExtensions threw an exception.

Last Update:

Nov 17, 2022 12:53:53 PM

Updated By:

NadiaB

Created date:

Dec 23, 2021 4:41:51 AM

QlikView fails to distribute QVW files to Qlik Cloud. When turning on the QlikView Distribution debug logging, the following error is output in the task log:

Error failure. GetJWT failed. Message = the type initializer for System.IdentityModel.Tokens.Jwt.JsonExtensions threw an exception.

or error while attempting to Distribute:

QDSMain.Exceptions.DistributeToResourcesFailedException: Distribute to resource failed. ---> System.Exception: Distribute to cloud exception failed

Environments:

QlikView12.50 and later
Qlik Cloud 

 

Resolution:

Check the following points:

  1. Make sure that all required DLLs are present in the C:\Program Files\QlikView\Distribution Service  (Newtonsoft.Json.dll, Microsoft.IdentityModel.Tokens.dll, PIX.dll) on the server hosting the QlikView Distribution Service.
  2. Open C:\Program Files\QlikView\Distribution Service \QVDistributionService.exe.config in a text editor and make sure the following block is present in the assemblyBinding section:
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
          <dependentAssembly>
            <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
            <bindingRedirect oldVersion="0.0.0.0-11.0.0.0" newVersion="11.0.0.0" />
          </dependentAssembly>
        </assemblyBinding>
  3. Restart the QlikView Distribution service.
  4. Repeat the steps on all available Distribution Services. 

NOTE: For 12.70 SR1 and later the version is 13:

<bindingRedirect oldVersion="0.0.0.0-13.0.0.0" newVersion="13.0.0.0" />
Labels (1)
Version history
Last update:
‎2022-11-17 12:53 PM
Updated by: