Forum Discussion
Dragon_Slayer
Oct 12, 2023Copper Contributor
Exception in .Net MAUI App: "System.ObjectDisposedException: Cannot access a closed Stream" on Andro
I am currently developing a .Net MAUI application where I am making an HTTP call. The peculiar issue I am facing is that the function works perfectly fine on Windows, but when I attempt to execute it...
- Oct 12, 2023I found the answer I don't know how it works but I removed this single line from my asp.net APIapp Program.cs file "//app.UseHttpsRedirection();" After removing that it worked. one of the answers in this https://stackoverflow.com/questions/71047509/trust-anchor-for-certification-path-not-found-in-a-net-maui-project-trying-t/71196389#71196389 got my solution but it was just a hunch for me
Dragon_Slayer
Oct 12, 2023Copper Contributor
I found the answer I don't know how it works but I removed this single line from my asp.net APIapp Program.cs file "//app.UseHttpsRedirection();" After removing that it worked. one of the answers in this https://stackoverflow.com/questions/71047509/trust-anchor-for-certification-path-not-found-in-a-net-maui-project-trying-t/71196389#71196389 got my solution but it was just a hunch for me
cakarxtr
Mar 17, 2024Copper Contributor
Dragon_Slayer Thanks my Problem resolved