[9.0.100-preview.7.24375.12] Text-Grab launch failed with exception System.Windows.Markup.XamlParseException at System.Windows.DependencyObject.EvaluateExpression #9475
Labels
Investigate
Requires further investigation by the WPF team.
Description
After the original bug [dotnet-sdk-9.0.100-preview.7.24352.8] WPF apps launch failed with exception 'Value cannot be null. (Parameter 'key')' fixed on dotnet-sdk-9.0.100-preview.7.24375.12, there is a new issue. The app still fails to be launched but it throws a new exception:
System.Windows.Markup.XamlParseException: ''Set property 'System.Windows.ResourceDictionary.Source' threw an exception.' Line number '17' and line position '18'.'
We prepared the repro machine for your investigation. Please get the information from internal bugReproduction Steps
Debug Repro steps:
Please get the repro machine from the internal bug
1.Open "C:\ReproAppSource\Text-Grab\Text-Grab.sln" with Visual Studio.
2. Build the solution.
3. Update bin\Debug\net8.0-windows10.0.20348.0\Text-Grab.runtimeconfig to run against with dotnet-sdk-9.0.100-preview.7.24375.12:
Expected behavior
Expected Result:
App should be launched successfully.
Actual behavior
Actual Result:
App launch failed with exception thrown in Visual Studio:
Regression?
Yes
Verify Scenarios:
1). Windows 10 21H2 AMD64 + dotnet-sdk-8.0.300: Pass
2). Windows 10 21H2 AMD64 + dotnet-sdk-9.0.100-preview.7.24375.12: Fail
Known Workarounds
No response
Impact
No response
Configuration
Application Name: Text-Grab
OS: Windows 10 21H2
CPU: X64
.NET Build Number: dotnet-sdk-9.0.100-preview.7.24352.8
App or source Location checking at: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/2173218
Github Link:
https://github.com/TheJoeFin/Text-Grab
Dotnet Info:
Other information
App Repro steps
Expected Result:
Launch successfully.
Actual Result:
Launch failed.
Open Event Viewer, we can see below detailed stack trace message:
Findings:
This is also "System.Windows.Markup.XamlParseException" exception, which is similar with bug [dotnet-sdk-9.0.100-preview.7.24352.8] WPF apps launch failed with System.Windows.Markup.XamlParseException, but the stack trace is different. It is thrown at ``System.Windows.DependencyObject.EvaluateExpression(EntryIndex entryIndex, DependencyProperty dp, Expression expr, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry newEntry)```
@dotnet-actwx-bot @dotnet/compat
The text was updated successfully, but these errors were encountered: