There is an option AspBufferingLimit in IIS. This option is used to limit the maximum size. But the maximum size of the buffer was even higher than the size of the files which caused the problem. Therefore this setting can't be the cause of the problem. Finally I decided to change the asp routine. Instead of sending the file in one buffered part, the routine sends the file in a couple of smaller parts. The behaviour of the system is exactly the same for the user but the download of files works independent of the filesize.