Azure / azure-iot-protocol-gateway

Azure IoT protocol gateway enables protocol translation for Azure IoT Hub
Other
224 stars 152 forks source link

Azure-iot-protocol-gateway git repo to replace SLAB with this: https://www.nuget.org/packages?q=Microsoft.Diagnostics.EventFlow #91

Open enesuysal opened 7 years ago

enesuysal commented 7 years ago

Basically if you use an Azure Storage library greater than or equal to 7.0, the SemanticLogging library doesn’t seem to work for cloud deployment.

Deploying a Cloud Services Host and after deployment we are getting following error with worker role.

ProtocolGateway.Host.Cloud.Service_IN_0: BusyRole Starting role... Unhandled Exception: One or more errors occurred. at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at ProtocolGateway.Host.Cloud.Service.WorkerRole.Run() in C:\azure-iot-protocol-gateway-master\host\ProtocolGateway.Host.Cloud.Service\WorkerRole.cs:line 31 at Microsoft.WindowsAzure.ServiceRuntime.RoleEnvironment.StartRoleInternal() at Microsoft.WindowsAzure.ServiceRuntime.Implementation.Loader.RoleRuntimeBridge.b__2() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() Inner Exception: Method not found: 'Void Microsoft.WindowsAzure.Storage.Table.CloudTableClient.set_RetryPolicy(Microsoft.WindowsAzure.Storage.RetryPolicies.IRetryPolicy)'. at Microsoft.Practices.EnterpriseLibrary.SemanticLogging.Sinks.WindowsAzureTableSink..ctor(String instanceName, String connectionString, String tableAddress, TimeSpan bufferInterval, Int32 maxBufferSize, TimeSpan onCompletedTimeout) at Microsoft.Practices.EnterpriseLibrary.SemanticLogging.WindowsAzureTableLog.LogToWindowsAzureTable(IObservable1 eventStream, String instanceName, String connectionString, String tableAddress, Nullable1 bufferingInterval, Boolean sortKeysAscending, Nullable`1 onCompletedTimeout, Int32 maxBufferSize) at ProtocolGateway.Host.Cloud.Service.WorkerRole.d__5.MoveNext() in C:\azure-iot-protocol-gateway-master\host\ProtocolGateway.Host.Cloud.Service\WorkerRole.cs:line 68

ravitol commented 5 years ago

Is there a workaround to this issue ?