Skip to content

2023

Web-based login fails for Lime CRM Desktop 11.1.2918 and older using WebView2 Runtime 116 and later

Background

Microsoft has released version 116 of a component that the Desktop Client depends on - the WebView2 Runtime. This version of the WebView2 runtime contains a change that breaks the standard login (Standard username/password, Azure AD login and OpenID login).

Customers using Single-Sign-On via Lime Active Directory Integration (LADI) are not affected, as that feature uses a different login method.

For corporate customers with controlled IT environment we currently advise them to stop automatic updates until Lime CRM Desktop have been upgraded.

Workaround

Switch to legacy login via the right-click menu in the login-dialog.

Note: AzureAD and OpenID are not supported for legacy login.

This setting can be set per server via the Windows Registry:

HKCU\Software\Lundalogik\Lime\Login\<servername>\WebLogin = DWORD(0)

Solution

This is the recommended solution to the problem.

This solution expects the auto update feature to be installed in your environment. By using the auto update feature the user does not need admin rights and the new Lime CRM version can be installed by the user them self.

Download Lime CRM Desktop

Make sure that you shut down the desktop client before running the installer. Run the installer by double clicking on it and follow the steps described. You should now be able to use the Desktop Client again.

Alternatives

Solution for administrators

Upgrade to Lime CRM Desktop 11.1.2974 or later. Download installer from link below:

Download Lime CRM Desktop (requires admin privileges)

Install fixed version of WebView2 115.0.1901.203

Open PowerShell as administrator and run the following code:

 $ARCH=“x64” 
 $NAME=“Microsoft.WebView2.FixedVersionRuntime” 
 $VERSION=“115.0.1901.203” 
 $FULL_NAME=“$NAME.$VERSION.$ARCH” 
 $WEBVIEW2_URI=“https://builds.lundalogik.com/api/v1/builds/$NAME.$ARCH/versions/$VERSION/file/” 
 $DOWNLOAD_DEST=“$env:temp\webview2.cab” 
 $LIME_CRM=“${Env:ProgramFiles(x86)}\Lundalogik\Lime CRM” 
 $ProgressPreference = 'SilentlyContinue' 
 Invoke-WebRequest -Uri $WEBVIEW2_URI -OutFile $DOWNLOAD_DEST 
 expand “$DOWNLOAD_DEST” -F:* “$LIME_CRM” 
 if (Test-Path “$LIME_CRM\WebView2”) { Remove-Item “$LIME_CRM\WebView2” -Recurse -Force } 
 Rename-Item “$LIME_CRM\$FULL_NAME” “$LIME_CRM\WebView2”

Change $ARCH according to you platform (x86/x64).

Lime CRM Desktop Client 11.1.2950

Product Lime CRM Desktop Client Version 11.1.2950 Date published 2023-08-16 Platform Windows Availability Manual installation and Automatic Updates.

This release is a wrap-up release backporting improvements and stability fixes from Insider.

Fixes

  • Refactored field-path resolution for consistent handling of empty values and errors.
  • Worked around stability issue during shutdown.
  • Decouple lifetime handling for COM-events to resolve memory leaks.
  • Detect and log navigations that include redirects.
  • Updated WebView2 SDK
  • Workaround race-condition between injected script and navigation initiated via location.replace
  • Use hardcoded GUID for todo-filter to better handle switching between languages.
  • Reintroduced workaround for crash in VBA during shutdown.
  • Ensure cached settings are cleared.
  • Load filters and views before records to preserve active settings.
  • Avoid returning NULL-string via IDispatch due to stability issue in WebView2.
  • Improved robustness for refreshing records with subset of class-fields loaded.
  • Avoid potential deadlock due to held locks while triggering events.
  • Unified visibility handling.

Lime CRM Desktop Client 11.1.2952

Product Lime CRM Desktop Client Version 11.1.2952 Date published 2023-08-22 Platform Windows Availability Manual installation and Automatic Updates.

This release is a wrap-up release backporting improvements and stability fixes from Insider.

Known Issues

  • Race-conditions for web-based login via AzureAD.
  • Compatibility problems with LDC-writes, ie. very old backend versions or where feature is explicitly activated.

Fixes

  • Refactored integration to workaround issues with window.open

Lime CRM Desktop Client 11.1.2956

Product Lime CRM Desktop Client Version 11.1.2956 Date published 2023-08-22 Platform Windows Availability Manual installation and Automatic Updates.

This release aims to resolve issues reported for the fast-tracked release due to compatibility problems with MS WebView2 116.

Known Issues

  • Customizations that use Application.MousePointer for certain events may result in lingering wait cursor, which makes it impossible to follow links in lists.
  • Records with validation errors cannot be deleted.
  • Using Controls.GetValue without explicit default value for linked fields that are Null will return Null instead of Empty which may result in errors “Invalid use of Null”.

Fixes

  • Fixed compatiblity issue with LDC-writes and records that have been pre-created in backend.
  • Removed automatic cleanup of MousePointer to reenable workaround for SuicidalCode.
  • Workaround for issues with JSON displayed in login-dialog due to race-conditions during HTTP-redirect for AzureAD.

Lime CRM Desktop Client 11.1.2961

Product Lime CRM Desktop Client Version 11.1.2961 Date published 2023-08-23 Platform Windows Availability Manual installation and Automatic Updates.

This release aims to resolve issues reported for the fast-tracked release due to compatibility problems with MS WebView2 116.

Fixes

  • Resolved underlying issue for lingering wait cursor.
  • Avoid triggering AfterRequery when records have been disconnected.
  • Avoid API access and events for closed inspector to avoid compatibility issues with VBA for AutoRelateAll.

Lime CRM Desktop Client 11.1.2963

Product Lime CRM Desktop Client Version 11.1.2963 Date published 2023-08-24 Platform Windows Availability Manual installation and Automatic Updates.

This release aims to resolve issues reported for the fast-tracked release due to compatibility problems with MS WebView2 116.

Fixes

  • Skip validation for deleted record.
  • Avoid unnecessary copying of strings.
  • Improved robustness for return values for missing linked values.
  • Restored compatibility for using Control.GetValue for missing linked values, ie. “Invalid use of Null”

Lime CRM Desktop Client 11.1.2968

Product Lime CRM Desktop Client Version 11.1.2968 Date published 2023-08-25 Platform Windows Availability Manual installation and Automatic Updates.

This release aims to resolve issues reported for the fast-tracked release due to compatibility problems with MS WebView2 116.

Fixes

  • Mask personal details for saved emails sent via shared accounts.
  • Text shortcuts are now persisted between session.
  • Refined internal management of (wait) cursor to resolve issues related to modal dialogs and popup menus in events.

Lime CRM Desktop Client 11.1.2974

Product Lime CRM Desktop Client Version 11.1.2974 Date published 2023-08-30 Platform Windows Availability Manual installation and Automatic Updates.

This release aims to resolve issues reported for the fast-tracked release due to compatibility problems with MS WebView2 116.

Fixes

  • Added error reporting for saving documents.
  • Fixed bug in validation from API that broke email integration for cards with validation errors (introduced in 11.1.2963)
  • Extended logging and debugging tools during login.
  • Refactored state handling for login to improve robustness for faulty backends and performance issues.
  • Implemented proper cursor handling for search list.

2023.1 – Hvannadalsnjúkur – Patch 2

New versions (2023.1.1566)

  • LDC 12.9.1927 -> 12.9.1945

LDC

  • LADI (Lime AD Integration) didn't work after applying Patch 1. Reverted back to old method to get user SID to maintain compatibility with SIDs stored in database via LADI.

Nginx

  • 429 Too Many Requests when trying to login. The rate limit setting for the login page was so strict that it was was easy to exceed it by everyday use. It now allows normal usage but will still stop excessive login attempts.

Lime CRM Desktop Client 11.1.2928

Product Lime CRM Desktop Client Version 11.1.2928 Date published 2023-06-13 Platform Windows Availability Manual installation and Automatic Updates.

This release target problems with email integration seen after upgrading to Lime CRM 11.1.2918.

Fixes

  • Ignore file not found for delete operations.
  • Ensure inspector is updated before made visible.
  • Added explicit handling of MSG/EML-files that represent meeting, task or contact (in addition to mail):
  • Avoid accidental loading of NULL-record when populating missing fields.
  • Fixed compatibility issue with Edge Canary 116.* that broke webbased login when using pre-release version of WebView2 Runtime
  • Improved robustness and debugging capabilities for webbased login.