1

我遇到了 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 消息,AsyncProtocolRequest asyncRequest) 在System.Net.Security.SslState。1.FromAsyncCoreLogic(IAsyncResult iar, Func2 endFunction, Action1 endAction, Task1 promise, Boolean requiresSynchronization) --- 内部异常堆栈跟踪结束 --- 在 Microsoft.Azure.Devices.Client.DeviceClient.<>c.b__79_2(Task 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(Task task) at SimulatedTemperatureSensor.Program.d__4.MoveNext() in /opt/vsts/work/1/s/edge-modules/SimulatedTemperatureSensor/src/Program.cs:line 105 - -- 在 System.Runtime 处从先前引发异常的位置结束堆栈跟踪。ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Azure.Devices.Client.Transport.Mqtt.Util.d__14.MoveNext() --- 上一个堆栈跟踪结束抛出异常的位置 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 在 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) 在 SimulatedTemperatureSensor.Program ./opt/vsts/work/1/s/edge-modules/SimulatedTemperatureSensor/src/Program.cs:line 28 中的 Main()

4

0 回答 0