IoT Edge模拟TempSensor问题

时间:2018-06-13 12:43:04

标签: azure-iot-edge

我遇到了Simulated TempSensor(在Windows上)的问题。当尝试将其作为模块运行时,我收到以下错误(来自docker的日志):使用传输Mqtt_Tcp_Only 无法在c:/mnt/edgemodule/edge-device-ca.cert.pem找到根证书文件。

未处理的异常:System.AggregateException:发生了一个或多个错误。 (发生了一个或多个错误。(根据验证程序,远程证书无效。)---> System.AggregateException:发生一个或多个错误。 (根据验证程序,远程证书无效。)---> System.Security.Authentication.AuthenticationException:根据验证过程,远程证书无效。    在System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    在System.Net.Security.SslState.StartSendAuthResetSignal(ProtocolToken消息,AsyncProtocolRequest asyncRequest,ExceptionDispatchInfo异常)    在System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message,AsyncProtocolRequest asyncRequest)    在System.Net.Security.SslState.StartSendBlob(Byte []传入,Int32计数,AsyncProtocolRequest asyncRequest)    在System.Net.Security.SslState.ProcessReceivedBlob(Byte []缓冲区,Int32计数,AsyncProtocolRequest asyncRequest)    在System.Net.Security.SslState.StartReadFrame(Byte []缓冲区,Int32 readBytes,AsyncProtocolRequest asyncRequest)    在System.Net.Security.SslState.PartialFrameCallback(AsyncProtocolRequest asyncRequest) ---从抛出异常的先前位置开始的堆栈跟踪结束---    在System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    在System.Net.Security.SslState.InternalEndProcessAuthentication(LazyAsyncResult lazyResult)    在System.Net.Security.SslState.EndProcessAuthentication(IAsyncResult结果)    在System.Net.Security.SslStream.EndAuthenticateAsClient(IAsyncResult asyncResult)    在System.Threading.Tasks.TaskFactory 1.FromAsyncCoreLogic(IAsyncResult iar, Func 2 endFunction,Action 1 endAction, Task 1 promise,Boolean requiresSynchronization)    ---内部异常堆栈跟踪结束---    在Microsoft.Azure.Devices.Client.DeviceClient。<> c.b__79_2(任务t)    在System.Threading.ExecutionContext.Run(ExecutionContext executionContext,ContextCallback回调,对象状态)    在System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot) ---从抛出异常的先前位置开始的堆栈跟踪结束---    在System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)    在SimulateTemperatureSensor.Program.d__4.MoveNext()in /opt/vsts/work/1/s/edge-modules/SimulatedTemperatureSensor/src/Program.cs:line 105 ---从抛出异常的先前位置开始的堆栈跟踪结束---    在System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)    在Microsoft.Azure.Devices.Client.Transport.Mqtt.Util.d__14.MoveNext() ---从抛出异常的先前位置开始的堆栈跟踪结束---    在System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()    在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(任务任务)    在Microsoft.Azure.Devices.Client.Transport.Mqtt.MqttIotHubAdapter.d__34.MoveNext()    ---内部异常堆栈跟踪结束---    在System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)    在System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)    在SimulateTemperatureSensor.Program.Main()in /opt/vsts/work/1/s/edge-modules/SimulatedTemperatureSensor/src/Program.cs:line 28

0 个答案:

没有答案