Last post Feb 04, 2010 02:51 PM by Matt-dot-net
Feb 04, 2010 02:28 PM|swapnilrsalunke|LINK
The problem is
I am having httphandler written which actually gets the sqlfilestream from the filestream NTFS location
and then the sql filestream I just write on to the response stream which gives me the file back to the
user as a part of donwload file dialogue.
Now alls working fine until user found out one of the issue that for a particular file when I say download
file the request ends up with the following error
Insufficient system resources exist to complete the requested service
and more on the probelm is only for downloading the Excel version of the file.
But on the other hand alll other files and other excel too are downloading
seamlessly. which really worrying me I do trace the calls and found out that
it is working correctly till control in HTTP Handler then from there it goes to business logic
to data layer where it gets the filepath then filestream returns the file stream to the
Handler where it just writes the stream on Handler
But ends up with the Abover error.
ANy one having idea what exactly is going wrong
asp.net 2.0 C# http handlers
Feb 04, 2010 02:51 PM|Matt-dot-net|LINK
A little difficult to follow your question, but it sounds like you are attempting to respond to request with a file. Try using Response.TransmitFile() or if you must access via stream, use Response.BinaryWrite