microsoft / vscode-dotnettools

This is a feedback repository to capture issues logged for the C# Dev Kit and related extensions from Visual Studio Code
Other
234 stars 13 forks source link

Hot Reload Initialization Exception #1381

Open nm4568 opened 3 months ago

nm4568 commented 3 months ago
          I have the same issue and similar environment.  Here is the Exception I see in the Debug Console when launching (F5) debug mode with Simulator.
[0:] Hot Reload initialization error: Hot Reload Bootstrap failed: System.AggregateException: One or more errors occurred. (Connection refused)
 ---> System.Net.Sockets.SocketException (61): Connection refused
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError , CancellationToken )
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 )
   at System.Threading.Tasks.ValueTask.ValueTaskSourceAsTask.<>c.<.cctor>b__4_0(Object state)
--- End of stack trace from previous location ---
   at System.Net.Sockets.TcpClient.CompleteConnectAsync(Task )
   at Microsoft.VisualStudio.DesignTools.TapContract.Networking.TcpNetworkStream.AcceptAsync(TimeSpan timespan, CancellationToken cancellationToken)
   at Microsoft.VisualStudio.DesignTools.TapContract.Networking.TcpDataBridge.InitializeAsync(TimeSpan timeout, CancellationToken token)
   at Microsoft.VisualStudio.DesignTools.MobileTapContracts.Bootstrapper.Boot(IPAddress[] ipAddresses, Int32 port, String connectionString, CancellationToken token)
   --- End of inner exception stack trace ---

The exception seems to be intermittent but the hot reload doesn't work at all regardless if this exception is thrown or not.

MacOS Sonoma v14.5 XCode 15.4 VS Code v1.92

VS Code Extensions .NET MAUI v1.2.12 C# Dev Kit v1.10.4 C# v2.41.26

Installed Workload Id      Manifest Version      Installation Source
--------------------------------------------------------------------
maui-tizen                 8.0.6/8.0.100         SDK 8.0.200        
maui-ios                   8.0.6/8.0.100         SDK 8.0.200

Originally posted by @nm4568 in https://github.com/microsoft/vscode-dotnettools/issues/1266#issuecomment-2282207983

BretJohnson commented 1 month ago

@nm4568 - Are you still able to repro this issue, even intermittently? If so, I'll suggest other troubleshooting steps to better track it down. Thanks.