October 2010
Intermediate to advanced
456 pages
10h 16m
English
We've now seen how to asynchronously access the database and a web service. Another area where asynchronous coding may bring performance benefits is writing files to disc after they have been uploaded using the FileUpload control.
You'll find this code in the downloaded code bundle in the folder ThreadStarvation_FileWrite_Sync. When you open the website in Visual Studio, you'll find that it stores uploaded files in a folder images. When you publish the website, to enable the website to write files into that folder, give user IIS_IUSRS modify permission to that folder:
Read now
Unlock full access