Windows Azure SDK 1.7 y Microsoft.WindowsAzure.Diagnostics

Si habéis migrado una aplicación de Windows Azure SDK 1.* al nuevo Windows Azure SDK 1.7 y hacéis uso del tracing en el Windows Azure Table Storage habréis observado un comportamiento errático, incluso habréis obtenido este mensaje a la hora de hacer tracing:

Could not load file or assembly ‘Microsoft.WindowsAzure.Diagnostics, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ or one of its dependencies. The located assembly’s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IO.FileLoadException: Could not load file or assembly ‘Microsoft.WindowsAzure.Diagnostics, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ or one of its dependencies. The located assembly’s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileLoadException: Could not load file or assembly ‘Microsoft.WindowsAzure.Diagnostics, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ or one of its dependencies. The located assembly’s manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

Bien, esto es debido a que hay que actualizar la referencia al ensamblado Microsoft.WindowsAzure.Diagnostics de vuestro fichero de configuración. Hay que pasar de esto:

<add type="Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener,

Microsoft.WindowsAzure.Diagnostics, Version=1.0.0.0, Culture=neutral,

PublicKeyToken=31bf3856ad364e35" name="MyDiagnostics">


a esto:

<add type="Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener,

Microsoft.WindowsAzure.Diagnostics, Version=1.7.0.0, Culture=neutral,

PublicKeyToken=31bf3856ad364e35" name="MyDiagnostics">



Era demasiado largo para un tweet Smile with tongue out

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *