Repository navigation
[release/7.0] Could not load file or assembly System.Text.Json Version=7.0.0.0,or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) #77988
Copy link
Copy link
Closed
Labels
Known Build ErrorUse this to report build issues in the .NET Helix tabUse this to report build issues in the .NET Helix tabarea-Infrastructure-librariesblocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'
Description
Build Information
Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=72698
Build error leg or test failing: Microsoft.Extensions.Logging.Console.Test.ConsoleLoggerTest.AddConsole_IsOutputRedirected_ColorDisabled
Pull request: #77187
Error Message
Fill the error message using known issues guidance.
{
"ErrorMessage": "The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)",
"BuildRetry": false
}Report
Summary
| 24-Hour Hit Count | 7-Day Hit Count | 1-Month Count |
|---|---|---|
| 0 | 0 | 34 |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Known Build ErrorUse this to report build issues in the .NET Helix tabUse this to report build issues in the .NET Helix tabarea-Infrastructure-librariesblocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'
Activity
carlossanlop commentedon Nov 7, 2022
@dotnet/area-system-text-json this is an error coming from System.Text.Json btw.
carlossanlop commentedon Nov 9, 2022
Another 7.0 PR affected (unrelated change: it is just bumping the emscripten dependencies): #77818
Job: https://dev.azure.com/dnceng-public/public/_build/results?buildId=76759&view=logs&j=bcd0b573-6223-5b97-9574-b5bb8414cd58&t=77990c5a-bddc-5d6f-6f2e-eea0cb8098e6&l=51
Log file: https://helixre107v0xdeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-pull-77818-merge-4dc7fa30176d46c786/Microsoft.Extensions.Logging.Console.Tests/1/console.fc56e2dd.log?helixlogtype=result
carlossanlop commentedon Nov 10, 2022
Also showed up in the PR to update the arcade dependencies in 7.0: #78107
Queue:
Libraries Build windows net48 x86 ReleaseJob: https://helixre107v0xdeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-pull-78107-merge-ec3bc7608be8448d9f/Microsoft.Extensions.Logging.Console.Tests/1/console.5693599f.log?helixlogtype=result
Log file: https://helixre107v0xdeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-pull-78107-merge-ec3bc7608be8448d9f/Microsoft.Extensions.Logging.Console.Tests/1/console.5693599f.log?helixlogtype=result
carlossanlop commentedon Nov 10, 2022
It seems this problem started after this 7.0 PR got merged: #73737 which introduced some System.Text.Json code in the affected tests.
Pinging @dotnet/area-extensions-logging for help fixing this.
[-]Could not load file or assembly System.Text.Json Version=7.0.0.0,or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)[/-][+][release/7.0] Could not load file or assembly System.Text.Json Version=7.0.0.0,or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)[/+]23 remaining items
ericstj commentedon Nov 12, 2022
If we can build against correctly versioned reference we should. Reduce the cases where we require redirects.
joperezr commentedon Nov 12, 2022
That's fine by me. That said, that's a change that probably should be made in main first and later cherry picked to release branch. I would suggest to, in the mean time, merge the pr I have opened in release that would fix the build and tests by generating redirects, and we can later remove that once we have the reference version fixes ready.
eerhardt commentedon Nov 14, 2022
I thought I remembered this issue as well, but couldn't find it last week. For release/6.0 to work around the issue, I did this:
runtime/src/libraries/Microsoft.Extensions.Hosting/tests/UnitTests/Microsoft.Extensions.Hosting.Unit.Tests.csproj
Lines 21 to 25 in ce7aaec
Don't bind against non-shipping contract assemblies
Don't bind against non-shipping contract assemblies (#78730)
ViktorHofer commentedon Nov 25, 2022
Fixed by #78730