-
Notifications
You must be signed in to change notification settings - Fork 957
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
When the helpNamespace property in helpProvider is blank after delete the previous saved URL, project exit from runtime automatically when press F1 #11583
Comments
Issue is here: winforms/src/System.Windows.Forms/src/System/Windows/Forms/Help/HelpProvider.cs Lines 130 to 144 in 5ba64ae
It should be: if (!string.IsNullOrEmpty(HelpNamespace)) |
@Liv-Goh two things:
|
@elachlan the test results are as below
HelpNamespace value is empty string in both .NET 8 and 9
System.ArgumentException |
winforms/src/System.Windows.Forms/src/System/Windows/Forms/Help/Help.cs Lines 290 to 309 in 5ba64ae
winforms/src/System.Windows.Forms/src/System/Windows/Forms/Help/Help.cs Lines 194 to 196 in 5ba64ae
|
@elachlan would you like to work on this one, or should I assign a team member? This is definitely one I want to take for .NET 9. |
@merriemcgaw happy for someone else to take this on. |
@LeafShi1 - could your teams please take a look? |
|
@Liv-Goh, could you try to change the exception setting to see whether the error exception will pop out? And make sure you have disenable the 'Enable Just My Code' in Debugging Options Setting. |
@SimonZhao888 Yes, the error exception will pop out after change the exception setting and set 'Enable Just My Code' to disable |
Hi @merriemcgaw, @Tanya-Solyanik, @elachlan, After we change the exception setting, the error exception will pop out, and error exception throwing for empty strings of helpNamespace property is also consistent with framework 4.7.2 and .NET 8.0. I think we don't need add any check for empty string of helpNamespace property. |
.NET version
.NET 9.0 SDK build: 9.0.100-preview.7.24321.3
Did it work in .NET Framework?
Yes
Did it work in any of the earlier releases of .NET Core or .NET 5+?
Yes, this is a regression issue. Not reproduced on .NET 8.0
Issue description
Current Behavior (.NET 9.0):
When the helpNamespace property in helpProvider is blank after delete the previous saved URL, project exit from runtime automatically when press F1 and no error exception popped out.
helpProvider.helpNamespce.issue.mp4
Expected Behavior (.NET 8.0):
![image](./?url=aHR0cHM6Ly9wcml2YXRlLXVzZXItaW1hZ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&__proxy_form=0)
When the helpNamespace property in helpProvider is blank after delete the previous saved URL, error exception popped out when press F1.
Steps to reproduce
The text was updated successfully, but these errors were encountered: