Azure / Azure/azure-iot-protocol-gateway
Azure-iot-protocol-gateway git repo to replace SLAB with this: https://www.nuget.org/packages?q=Microsoft.Diagnostics.EventFlow
- Dominant language
- C#
- Stars
- 227
- Forks
- 156
- PR merge metrics
- No merged PRs in 30d
Description
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(IObservable`1 eventStream, String instanceName, String connectionString, String tableAddress, Nullable`1 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
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in host\ProtocolGateway.Host.Cloud.Service\WorkerRole.cs at lines 31 and 68, then review the Microsoft.Practices.EnterpriseLibrary.SemanticLogging.WindowsAzureTableLog call shown in the stack trace. Compare the current Azure Storage dependency with Microsoft.Diagnostics.EventFlow and verify that a deployed worker role starts without the CloudTableClient method-not-found error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, csharp
- Domain
- backend, cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100