Cannot download .exe file from IIS 5.1???
-
In my web application ( ASP.NET vs2005, Framework 2.0, IIS 5.1), when I set Hyperlink's NavigateUrl to a exe file ( exam : http://localhost/MyApp/Upload/file1.exe ) it don't work ( Others file type's OK) I've already add MIME {.exe, application/octet-stream } in HTTP Header but it still don't work. It thraw : CGI Timeout The specified CGI application exceeded the allowed time for processing. The server has deleted the process. Can u help me? Thanks!
QuynhTD
-
In my web application ( ASP.NET vs2005, Framework 2.0, IIS 5.1), when I set Hyperlink's NavigateUrl to a exe file ( exam : http://localhost/MyApp/Upload/file1.exe ) it don't work ( Others file type's OK) I've already add MIME {.exe, application/octet-stream } in HTTP Header but it still don't work. It thraw : CGI Timeout The specified CGI application exceeded the allowed time for processing. The server has deleted the process. Can u help me? Thanks!
QuynhTD
Doan Quynh wrote:
CGI Timeout The specified CGI application exceeded the allowed time for processing. The server has deleted the process.
Does your virtual folder has permissions for 'Scripts and Executables'? I think your IIS is trying to execute the .EXE file instead of streaming it to the web browser.
Vasudevan Deepak Kumar Personal Homepage
Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson -
Doan Quynh wrote:
CGI Timeout The specified CGI application exceeded the allowed time for processing. The server has deleted the process.
Does your virtual folder has permissions for 'Scripts and Executables'? I think your IIS is trying to execute the .EXE file instead of streaming it to the web browser.
Vasudevan Deepak Kumar Personal Homepage
Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis LevinsonYes, my virtual folder has permissions for 'Scripts and Executables' but it still don't work? :confused:
QuynhTD
-
Yes, my virtual folder has permissions for 'Scripts and Executables' but it still don't work? :confused:
QuynhTD
Doan Quynh wrote:
my virtual folder has permissions for 'Scripts and Executables'
Since your virtual folder has 'Executables' permission, I guess your IIS is executing the EXE instead of streaming. Can you make it only 'Scripts' and confirm? Otherwise, you may need to have an ASP.NET handler which can read the .EXE file using Stream functions and write the response using Response.BinaryWrite.
Vasudevan Deepak Kumar Personal Homepage
Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson -
Doan Quynh wrote:
my virtual folder has permissions for 'Scripts and Executables'
Since your virtual folder has 'Executables' permission, I guess your IIS is executing the EXE instead of streaming. Can you make it only 'Scripts' and confirm? Otherwise, you may need to have an ASP.NET handler which can read the .EXE file using Stream functions and write the response using Response.BinaryWrite.
Vasudevan Deepak Kumar Personal Homepage
Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis LevinsonI made it only "Script" and it run well. Thank you very much. I will try ASP.NET handler later.
QuynhTD