FIX: "ConnectionString cannot be null" when you use Folder Redirection with Offline Files

Applies to: SQL Server Compact 4.0


Consider the following scenario:
  • You have installed Microsoft SQL Server Compact 4.0 Service Pack 1 (SP1) on a computer.
  • You are using Microsoft Dynamics CRM 2011 for Microsoft Office Outlook (Outlook client).
  • You use Folder Redirection feature together with Offline Files.
  • The redirected folder is working online and you are running synchronization in the Outlook that has CRM add-in configured.
In this scenario, you receive the following error message:
ConnectionString cannot be null!
 at Microsoft.Crm.CrmException.Assert (Boolean condition, String message)
 at Microsoft.Crm.Application.SMWrappers.CrmSqlCeConnection..ctor (String connection String)
 at Microsoft.Crm.Application.SMWrappers.CrmSqlCeConnection.<>c_DisplayClasse`1.<ExecuteInNewConnection>b_a()
 at Microsoft.ExceptionHelper.ExceptionFilter.TryFilterAllCatch (Action body, Action`1 filter)
 at Microsoft.Crm.Application.SMWrappers.CrmSqlCeConnection.ExecuteInNewConnection[TReturn] (String connectionString, Func`2 actions, Func`2 exceptionHandler)
 at Microsoft.Crm.Application.SMWrappers.OutlookSyncTable.GetChangesCount (Int32 priority)
 at Microsoft.Crm.Applications.SMWrappers.ThreadsSupport.ExecuteThreadProc (ThreadProc threadProc, IntPtr parameter)


The hotfix that resolves this problem is included in an on-demand hotfix update package for SQL Server Compact 4.0 Service Pack 1.

For more information about how to obtain this on-demand hotfix update package for SQL Server Compact 4.0, click the following article number to view the article in the Microsoft Knowledge Base:
2960153 On-demand hotfix update package for SQL Server Compact 4.0 Service Pack 1


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.