Repository navigation
FtpWebRequest method "ListDirectoryDetails" returns broken result for encrypted connetion #134130
Description
Activity
- addeduntriagedNew issue has not been triaged by the area ownerNew issue has not been triaged by the area owner
on Sep 17, 2026 - changed the title
[-]FtpWebRequest Method "ListDirectoryDetails" returns broken result for encrypted connetion[/-][+]FtpWebRequest method "ListDirectoryDetails" returns broken result for encrypted connetion[/+]on Sep 17, 2026 dotnet-policy-service commented
on Sep 17, 2026 ContributorMore actionsTagging subscribers to this area: @karelz, @dotnet/ncl
See info in area-owners.md if you want to be subscribed.I'm a bot. Here is a possible related and/or duplicate issue (I may be wrong):
The bot is right, dotnet/sdk#52324 is the same issue. But I will keep this one open, as I think the "runtime" repo is the proper place to report this.
I found another issue about regressions in .NET 10 FTP upload, where the broken output is mentioned in comment #123135 (comment). Part of issue #123135 seems to have been fixed in .NET11: #123234, but this fix probably does not handle the broken output.
Reacted by Tomas Weinfurt- removeduntriagedNew issue has not been triaged by the area ownerNew issue has not been triaged by the area owner
on Oct 1, 2026 I tried to reproduce it @WolfgangHG and not seems like #123234 resolves it as well. please give it shot with .NET 11 RC1+ and share the outcome.
- addedneeds-author-actionAn issue or pull request that requires more info or actions from the author.An issue or pull request that requires more info or actions from the author.
on Oct 2, 2026 dotnet-policy-service commented
on Oct 2, 2026 ContributorMore actionsThis issue has been marked
needs-author-actionand may be missing some important information.- added a commit that references this issue
on Oct 3, 2026 I can confirm that it works in .NET11 RC1: both the broken result string and the random
ObjectDisposedExceptionare fixed.Closing this issue. A backport to .NET10 would be nice, but we already worked around it by adding FluentFtp support.
Description
This is a regression in .NET10: I use
FtpWebRequestwithMethod = WebRequestMethods.Ftp.ListDirectoryDetailsto return a directory listing.I read the response like this:
With .NET9, this returns this:
.NET 10 returns some garbage - I post a screenshot of the string content from debugger:
Reproduction Steps
Attached is a sample: FtpTest.zip
It contains two target frameworks ("net9.0-windows" and "net10.0-windows"), so launch it with both to compare the results.
In the sample, enter FTP server address, login and password and set the checkbox "Encrypt connetion".

Then click "Directory listing".
This should work with .NET9, but show a broken response with .NET10.
Expected behavior
.NET10 should report a plain text listing identical to .NET9.
Actual behavior
See description.
Regression?
.NET9.
Known Workarounds
Use FluentFtp - my sample also provides this.
Configuration
No response
Other information
No response