Alex Rivera | Logout

Could not create Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener

Asked 2012-11-24T12:41:48.477
9

While using Windows Azure Table Storage in WCFService WebRole, tried to create CloudStorageAccount by the following way:

storageAccount = 
CloudStorageAccount.Parse(Microsoft.WindowsAzure.CloudConfigurationManager.GetSetting("[Setting name]"))

Get exception:

ConfigurationErrorsException "Could not create Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener, Microsoft.WindowsAzure.Diagnostics, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35."

MSDN help says that 1) Visual Studio must be run as an administrator. 2) A role must be running under full trust (change the .NET trust level option to Full Trust).

All Done, but I still have the same exception.

Edit
Report

1 Answer

0

I've found that this error is caused by the wrong version in your web.config

Ie., you may not have Version=1.0.0.0

Microsoft.WindowsAzure.Diagnostics is up to version 1.8.0.0 as of now

Try updating to the current version

answered 2013-04-01T15:26:22.967

Your Answer