WebSocketException: 无法连接到远程服务器 --ErrorCode: 0 --WebSocketErrorCode: Success StackTrace: 在 System.Net.WebSockets.ClientWebSocket.<ConnectAsyncCore>d__21.MoveNext() --- 引发异常的上一位置中堆栈跟踪的末尾 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 在 __ScriptExecution.__njtpsb7e.VoiceInputManager.<StartProcess>d__19.MoveNext() --- 引发异常的上一位置中堆栈跟踪的末尾 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 在 __ScriptExecution.__njtpsb7e.VoiceInputManager.<ToggleRecording>d__18.MoveNext() --- 引发异常的上一位置中堆栈跟踪的末尾 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 在 __ScriptExecution.__njtpsb7e.VoiceInputManager.<<InitializeWindow>b__17_0>d.MoveNext() --- 引发异常的上一位置中堆栈跟踪的末尾 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) 在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) WebException: 远程服务器返回错误: (401) 未经授权。 --Status: ProtocolError --Response: System.Net.HttpWebResponse StackTrace: 在 System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) 在 System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization) --- 引发异常的上一位置中堆栈跟踪的末尾 --- 在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() 在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) 在 System.Net.WebSockets.ClientWebSocket.<ConnectAsyncCore>d__21.MoveNext()