I've installed Windows Azure Caching 2.1.0.0 from Nuget and I configured the collection of the client library diagnostics on a worker role using Azure SDK 2.1 following the instructions in this SO answer.
Unfortunately, when I start the application in the development fabric, I obtain the following exception -- I don't understand why it is complaining about the configuration file. I've searched for this error but I found nothing relevant to my case.
Microsoft.ApplicationServer.Caching.DataCacheException was caught
ErrorCode=9004
HelpLink=http://go.microsoft.com/fwlink/?LinkId=164049
HResult=-2146233088
Message=ErrorCode<ERRCMS0004>:SubStatus<ES0001>:Configuration file
(file name:"{0}") not found.
Source=Microsoft.ApplicationServer.Caching.Core
SubStatus=-1
StackTrace:
at Microsoft.ApplicationServer.Caching.ConfigFile.
ThrowException(Int32 errorCode)
at Microsoft.ApplicationServer.Caching.AzureCommon.
MemcacheUtility.GetRoleConfigPath()
at Microsoft.ApplicationServer.Caching.AzureCommon.
CacheDiagnostics.ConfigureMemcacheShimCrashDumps
(DiagnosticMonitorConfiguration diagnosticMonitorConfig)
at Microsoft.ApplicationServer.Caching.AzureCommon.
CacheDiagnostics.ConfigureDiagnostics
(DiagnosticMonitorConfiguration diagnosticMonitorConfig,
String diagnosticsStorageAccountConfigurationSettingName)
at Microsoft.ApplicationServer.Caching.AzureCommon.
CacheDiagnostics.ConfigureDiagnostics(
DiagnosticMonitorConfiguration diagnosticMonitorConfig)