Skip to content
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.' #4235

Open
v-reinawang opened this issue May 20, 2024 · 3 comments
Labels
needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners

Comments

@v-reinawang
Copy link

INSTALL STEPS

  1. Clean machine: Win11 x64 23h2 ENU

  2. Install VS 17.10 GA FB

    • Web workload
    • Includes Aspire 8.0.0
  3. Install Aspire 8.0.1 workload

    • Apply feed for Aspire 8.0.1

REPRO STEPS

  1. Open an existing 8.0.0 solutions (Aspire Starter Application), build and run - works

  2. Right click Solution > Manage NuGet Packages for Solution > Update

  3. Select 8.0.1 resource in the Package source drop-down box > Select all packages > Update
    image

  4. Right click the solution > Build and F5

NOTE: If right click the solution > Rebuild solution, this project can be run successfully

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

image

EXPECTED
Can run successfully.

@dotnet-issue-labeler dotnet-issue-labeler bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label May 20, 2024
@v-elenafeng
Copy link

@joperezr @vijayrkn FYI on this issue that was reported for updating solution from 8.0.0 to 8.0.1.

@joperezr
Copy link
Member

From the repro steps, it isn't clear to me if the project was restored after updating packages. The issue seems like something that would happen if full restore didn't happen.

@v-reinawang
Copy link
Author

  1. If you don't build and run in the first step, this issue will not be reproduced.
  2. I updated a project with 8.0.0-preview.7.24251.11 to 8.0.0, this issue is not reproduced.
  3. Execute all REPRO STEPS in CMD. This issue is not reproduced.
  4. After updating the package, wait for all packages to be restored and build successfully, then press F5, and you will encounter this issue. However, Rebuild solution will not encounter this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners
Projects
None yet
Development

No branches or pull requests

3 participants