-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
[dotnet-sdk-7.0.101] System.Reflection.AmbiguousMatchException: 'Ambiguous match found.' #78938
Comments
Tagging subscribers to this area: @dotnet/area-extensions-configuration Issue DetailsIs there an existing issue for this?
Describe the bugWhen launch the aspnet core app mixcore against .NET 7.0.101 runtime, it failed with exception. Application Name: mixcore Verify Scenarios: App and App Source checking at : https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1687533 Expected BehaviorApp will launch successful. Steps To ReproduceThis is .net6.0 app, but we are running it on 7.0, machine only have 7.0 installed, and DOTNET_ROLL_FORWARD_ON_NO_CANDIDATE_FX=2, so it runs on 7.0
Minimal Repro sample:
Exceptions (if any)Actual Result: Findings:
.NET Versiondotnet-sdk-7.0.101 Anything else?dotnet --info
@dotnet-actwx-bot @dotnet/compat
|
@SteveDunn I haven't had a chance to look at the repro yet, but is it possible this was related to the immutable type changes in 7.0? |
@Junjun-zhao I am noticing you are using SDK |
In 7.0.0, we added I see that #78118 changes the logic to now pass potentially user-defined If we're trying to revert to 6.x behavior, we should use runtime/src/libraries/Microsoft.Extensions.Configuration.Binder/src/ConfigurationBinder.cs Lines 381 to 385 in 77f4e99
|
@halter73 right, that what I was suspecting too. I agree with your suggestion on how to fix it. |
@tarekgh It did not repro on 7.0.0 release(Windows10 21H2 x64+dotnet-sdk-7.0.100: Pass). Is this a blocker for 7.0.1? Will this issue be fixed in 7.0.1? |
This confirms our theory. I'll work on the fix. Thanks @Junjun-zhao for reporting and confirming the issue. |
This is fixed for servicing through the PR #79019 |
Verified and this issue has been fixed on dotnet-7.0.102-servicing.22602.11. |
At present, the latest official docker image does not seem to work, and such problems still occur. mcr.microsoft.com/dotnet/aspnet:7.0 |
@contione the fix is not released yet. |
Is there an existing issue for this?
Describe the bug
When launch the aspnet core app mixcore against .NET 7.0.101 runtime, it failed with exception.
Application Name: mixcore
OS: Windows 10 21H2
CPU: X64
.NET Build Number: dotnet-sdk-7.0.101
Verify Scenarios:
1). Windows10 21H2 x64+dotnet-sdk-7.0.101: Fail
2). Windows10 21H2 x64+dotnet-sdk-7.0.100: Pass
App and App Source checking at : https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1687533
Github Link: https://github.com/mixcore/mix.core
Expected Behavior
App will launch successful.
Steps To Reproduce
This is .net6.0 app, but we are running it on 7.0, machine only have 7.0 installed, and DOTNET_ROLL_FORWARD_ON_NO_CANDIDATE_FX=2, so it runs on 7.0
Minimal Repro sample:
Exceptions (if any)
Actual Result:
Launch failed with below exception:
Findings:
StackTrace:
.NET Version
dotnet-sdk-7.0.101
Anything else?
dotnet --info
@dotnet-actwx-bot @dotnet/compat
The text was updated successfully, but these errors were encountered: