-
Notifications
You must be signed in to change notification settings - Fork 389
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
[WebToolsE2E][Aspire] Updated Aspire version from 8.0.0 to 8.0.1. When running the project, an exception occurred: System.IO.FileNotFoundException: 'Could not load file or assembly 'Microsoft.Extensions.ServiceDiscovery, Version=8.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.' #9489
Comments
This might possibly be a symptom of #8014 |
This issue also repro when the Aspire version is upgraded from 8.0.2 to 8.1 and run the project. |
I just updated my Project from to 8.1.0 to 8.2.0 and now I have this error as well. I have 4 projects and when deployed to Azure all 4 throw those errors... Is there a workaround? )I tried cleaning the solution and then azd down and azd up but nothing fixes the errors)
|
I tried to update the project from aspire 8.1.0 to aspire 8.2.0 (updating the versions of packages Aspire.Hosting.AppHost and Microsoft.Extensions.ServiceDiscovery from 8.1.0 to 8.2.0, and updating the version of Microsoft.Extensions.Http.Resilience from 8.7.0 to 8.8.0), and both running and publishing were successful. |
After removing all |
I tried to update the project from aspire 8.2.0 to aspire 9.0 (updated versions of Aspire.Hosting.AppHost and Microsoft.Extensions.ServiceDiscovery), this issue still repro. |
@v-reinawang if you wait a minute after step 3 (so that automatic restore can complete) does the problem still repro for you? If so, then this is a dupe of #8014. If not, it's something else. |
I tried to update the project from aspire 8.1.0 to aspire 8.2.0 (only updated versions of Aspire.Hosting.AppHost and Microsoft.Extensions.ServiceDiscovery), wait a few minutes and run, this issue still repro. After updating the two packages mentioned above, update Microsoft.Extensions.Http.Resilience, and then press F5 to run the project, will not encounter this issue. After updating the two packages mentioned above, click 'Rebuild solution' and run will not encounter this issue. |
This issue also repro when the Aspire version is upgraded from 8.2.2 to 9.0.0 and run the project. |
INSTALL STEPS
REPRO STEPS
NOTE:
ACTUAL
System.IO.FileNotFoundException
HResult=0x80070002
Message=Could not load file or assembly 'Microsoft.Extensions.ServiceDiscovery, Version=8.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.
Source=AspireApp1.ServiceDefaults
StackTrace:
at Microsoft.Extensions.Hosting.Extensions.AddServiceDefaults(IHostApplicationBuilder builder) in C:\Users\v-reinawang\Desktop\AspireApp1\AspireApp1\AspireApp1.ServiceDefaults\Extensions.cs:line 35
at Program.
$(String[] args) in C:\Users\v-reinawang\Desktop\AspireApp1\AspireApp1\AspireApp1.ApiService\Program.cs:line 4
EXPECTED
Can run successfully.
The text was updated successfully, but these errors were encountered: