-
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
System.Net.Sockets.SocketException (995) -System.IO.IOException #90338
Comments
Tagging subscribers to this area: @dotnet/ncl Issue DetailsDescriptionMy app is having tons of these exceptions, I am not sure what I am doing wrong. I am catching them via global exception handling. System.Exception: CurrentDomain_FirstChanceException Reproduction StepsJust start running my app to access API services via HttpClient - use c IHttpClientFactory _httpClientFactory to create it. I followed all the best practices. Expected behaviorShould work fine... Actual behaviorThrows exceptions. Regression?Nope Known WorkaroundsCatching with global exception handlers For ANDROID public class MainActivity : MauiAppCompatActivity
#endregion FOR WINDOWS public partial class App : MauiWinUIApplication
|
Author: | mgungorchamp |
---|---|
Assignees: | - |
Labels: |
|
Milestone: | - |
@mgungorchamp which platforms are impacted? |
This issue has been marked |
NET MAUI Android and Windows versions have this issue. It's not happening all the time. GitHub source has everything, you need VS 2022, compile and RUN.. and observe the log file generated in the cache folder. https://github.com/mgungorchamp/InfoBoard/tree/SoloPage-Analytics |
@mgungorchamp would you be able to isolate really the minimal repro on Windows? That would help us route it appropriately. |
This issue has been marked |
It's very difficult to generate since it comes randomly... anyway I am catching up with Global Exception... and the app survives. not a clean solution.. |
Description
My app is having tons of these exceptions, I am not sure what I am doing wrong. I am catching them via global exception handling.
This does not crash my app but it does not feel right and does not give me confidence in my app in the long run.
Reproduction Steps
Just start running my app to access API services via HttpClient - use c IHttpClientFactory _httpClientFactory to create it. I followed all the best practices.
Expected behavior
Should work fine...
Actual behavior
Throws exceptions.
Regression?
Nope
Known Workarounds
Catching with global exception handlers
For ANDROID
FOR WINDOWS
Configuration
Here is my code
.NET MAUI app
https://github.com/mgungorchamp/InfoBoard/tree/SoloPage-Analytics
Other information
Here is the caught exception trace.
dotnet/maui#16679
The text was updated successfully, but these errors were encountered: