Hi Xy You may need to ask on the Xamarin Forums, rather then on the mailing list - most of the activity is there.
Or better yet, especially if you have a small sample you can send them, email supp...@xamarin.com Cheers Nic On Mon, Jan 20, 2014 at 1:31 AM, Xy <x...@pyriformgroup.com> wrote: > Hi, > > I have some code that downloads files using WebClient from a Windows > Authentication-based server for Monotouch that worked well before the iOS7 > release of Monotouch. However, now with this version of Monotouch: > > Xamarin.iOS > Version: 7.0.5.2 (Business Edition) > Branch: > Build date: 2013-02-12 20:04:08-0500 > > I get this error when downloading files: > > Exception from source mscorlib : System.IO.IOException: Too many open files > > at System.IO.FileStream..ctor (System.String path, FileMode mode, > FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, > FileOptions options) [0x00000] in <filename unknown>:0 > at System.IO.FileStream..ctor (System.String path, FileMode mode, > FileAccess access, FileShare share, Int32 bufferSize, Boolean isAsync, > Boolean anonymous) [0x00000] in <filename unknown>:0 > at System.IO.FileStream..ctor (System.String path, FileMode mode, > FileAccess access) [0x00000] in <filename unknown>:0 > > The error happens like clockwork after 236 files are downloaded from a > Windows Authentication server. The first 235 files download just fine. > > The exact same code that worked before, now does not work when paired with > the new version of the Monotouch library. I thought that perhaps it had > something to do with WebClient specifically, so I tried implementing a > non-WebClient approach using HttpWebRequest and that has the exact same > problem. As soon as I take the Windows Authentication piece out by pointing > it at a non-authenticated test server, it works fine. When I switch back to > the Windows Authentication server, it breaks. Windows Authentication is a > necessary part of this app, so I cannot switch to another authentication > method. > > I am sure this is a regression. I have confirmed that this is not an iOS7 > issue as the same problem repros in the iOS 6 simulator as the iOS 7 > simulator. Rather, it is an issue in the underlying Monotouch/Mono library > itself. The old build works just fine on iOS 7 simulator and hardware. > > Two questions: > > 1. Can I use the old version of Monotouch somehow? If so, how do I > download the DLL for the old version of System.Net, and use it side-by-side > in my app? I am now on the new version of the tools. > 2. Is this an issue you can provide guidance on how to work around, or an > ETA on a fix? > > Thanks, > > > > > -- > View this message in context: > http://monotouch.2284126.n4.nabble.com/Major-Windows-Authentication-Issue-tp4658528.html > Sent from the MonoTouch mailing list archive at Nabble.com. > _______________________________________________ > MonoTouch mailing list > MonoTouch@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/monotouch -- Nic Wise t. +64 21 676 418 | @fastchicken b. http://www.fastchicken.co.nz/ _______________________________________________ MonoTouch mailing list MonoTouch@lists.ximian.com http://lists.ximian.com/mailman/listinfo/monotouch