-
Notifications
You must be signed in to change notification settings - Fork 578
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Aspire 9 on macOS 15.1 won't launch due to "The JSON-RPC connection with the remote party was lost before the request could complete." #6701
Comments
So interestingly enough, I realized that my Mac Studio is running an older version of .net core 8 (8.0.1). I updated just .net core 8 (even though I'm doing all .net core 9 stuff and using aspire 9) to .net 8.0.11 and the issue appears to be resolved. Odder still is on another MacBook, I only have .net 9 installed and also don't have the issue. |
Thanks for the confirmation @JamesAlexander42, just to confirm, can you share the version of the 8.0 SDK (who brought that 8.0.11) so we can validate things are working as expected? |
I’ve already faced this issue since I updated net 9 and aspire 9. |
It looks like I actually updated from 8.0.1 runtime up to 8.0.10 and it started working. Again, even though I'm targeting .net 9 and aspire 9. Here's my current info: .NET SDK: Runtime Environment: .NET workloads installed: Configured to use loose manifests when installing new manifests. Host: .NET SDKs installed: .NET runtimes installed: Other architectures found: Environment variables: global.json file: |
I can confirm this. My solution is .NET 9 and Aspire 9 and had sdk 8.0.300 and 9.0.100 installed. After I updated .NET 8 sdk to 8.0.404 it was solved. |
I also had .NET 9.0.101 installed and 8.0.100. Installing 8.0.404 also fixed my issue with Aspire Starter Kit on MacOS. |
Currently running only 9.0.100 (upgraded to 9.0.102) and removed all .NET 8 and this is repro'ing |
Closing as it seems this is the resolution:
|
@bradygaster @maddymontaquila is still running into it. |
@LittleLittleCloud - @maddymontaquila has seen a few folks run into this during conference trips. She probably has some solid repro scenarios/machines that could aid in troubleshooting. |
@maddymontaquila or @JamesAlexander42 while I clear the dust and charging my macbook to bring it back alive, would you mind share the aspire log from C# devkit with us. You can find these logs using the following approach
|
weirdly... I don't have Aspire.log ?!?! |
@maddymontaquila probably because the aspire service fail to be created so you didn't see any aspire log. I do find out something fishy from your log though,, there's an exception in Interop+AppleCrypto+AppleCommonCryptoCryptographicException: The specified item is no longer valid. It may have been deleted from the keychain. HResult='-25304' when creating Aspire service,, I think that's why you see
|
The cause for issue is To fix this issue, please kindly install the latest .NET 8 SDK (currently,the latest .NET 8 SDK is 8.0.405, according to @jjoergensen 8.0.404 also works) and reload VSCode. @JamesAlexander42 please let me know if the suggestion above resolves the issue you have. |
I still don't think this is "solved" considering 9 isn't working. How do we get 9 to work? |
@maddymontaquila C#DK is still in the progress of migrating to .NET 9, it should work once after the migrating process complete. |
Hi Everyone, I encountered the same issue and found a solution. The problem was resolved after I removed all the previous versions of .NET from my Mac, keeping only the latest version, 9.0.200. As shown in my screenshots, I had multiple versions of .NET installed, and once I uninstalled all the old versions, the issue was fixed. |
Leaving this issue open but it's related to: |
To resolve this issue install the latest version of the runtime for C#DK. For release versions of Dev Kit -- This would be updating .NET 8 runtime to latest .NET 8 runtime. For pre-release versions of Dev Kit -- This would be updating .NET 9 runtime to latest .NET 9 runtime. |
I had the same issue with these versions of dotnet .NET SDKs:
|
@JakeRadMSFT do you think we could intercept this error and add a note in it to update all versions of .NET? because .NET doesnt keep itself up to date, i worry this might lag for a while... |
Is there an existing issue for this?
Describe the bug
Similar to issue #5860 but new since updating to macOS 15.1, the 9.0 dotnet aspire templates and updating the solution to aspire 9. I should also note this happens immediately when using the new starter template. The error "The JSON-RPC connection with the remote party was lost before the request could complete." occurring on F5 in VS Code used to happen until the update to .net 8 or using .net 9 with aspire 8.
Interestingly enough, it doesn't happen to existing or new aspire 8 projects. If I create a new vanilla start aspire 9 project via
dotnet new aspire-starter
and then attempt to debug app host, I get the error on macOS 15.1.Odder still is that I've only updated my Mac Studio to 15.1 but my MacBook Pro is on 15.0. The exact same aspire 9 repo/solution on 15.0 without issue.
Installed Workload Id Manifest Version Installation Source
aspire 8.2.2/8.0.100 SDK 9.0.100
C# Dev Kit v1.13.9
Expected Behavior
On F5 the AppHost and related projects will start successfully without an error of "The JSON-RPC connection with the remote party was lost before the request could complete."
Steps To Reproduce
mkdir aspire-starter-test
cd aspire-starter-test
Exceptions (if any)
Running on macOS 15.0 appears to work fine
.NET Version info
.NET SDK:
Version: 9.0.100
Commit: 59db016f11
Workload version: 9.0.100-manifests.c6f19616
MSBuild version: 17.12.7+5b8665660
Runtime Environment:
OS Name: Mac OS X
OS Version: 15.1
OS Platform: Darwin
RID: osx-arm64
Base Path: /usr/local/share/dotnet/sdk/9.0.100/
.NET workloads installed:
[aspire]
Installation Source: SDK 9.0.100
Manifest Version: 8.2.2/8.0.100
Manifest Path: /usr/local/share/dotnet/sdk-manifests/8.0.100/microsoft.net.sdk.aspire/8.2.2/WorkloadManifest.json
Install Type: FileBased
Configured to use loose manifests when installing new manifests.
Host:
Version: 9.0.0
Architecture: arm64
Commit: 9d5a6a9aa4
.NET SDKs installed:
7.0.304 [/usr/local/share/dotnet/sdk]
8.0.100 [/usr/local/share/dotnet/sdk]
8.0.101 [/usr/local/share/dotnet/sdk]
9.0.100 [/usr/local/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 7.0.7 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 8.0.1 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 9.0.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 7.0.7 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.1 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 9.0.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Other architectures found:
None
Environment variables:
Not set
global.json file:
Not found
Learn more:
https://aka.ms/dotnet/info
Download .NET:
https://aka.ms/dotnet/download
Anything else?
No response
The text was updated successfully, but these errors were encountered: