Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Cannot download .exe file from IIS 5.1???

Cannot download .exe file from IIS 5.1???

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netsysadminwindows-adminhelp
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Doan Quynh
    wrote on last edited by
    #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

    V 1 Reply Last reply
    0
    • D Doan Quynh

      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

      V Offline
      V Offline
      Vasudevan Deepak Kumar
      wrote on last edited by
      #2

      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

      D 1 Reply Last reply
      0
      • V Vasudevan Deepak Kumar

        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

        D Offline
        D Offline
        Doan Quynh
        wrote on last edited by
        #3

        Yes, my virtual folder has permissions for 'Scripts and Executables' but it still don't work? :confused:

        QuynhTD

        V 1 Reply Last reply
        0
        • D Doan Quynh

          Yes, my virtual folder has permissions for 'Scripts and Executables' but it still don't work? :confused:

          QuynhTD

          V Offline
          V Offline
          Vasudevan Deepak Kumar
          wrote on last edited by
          #4

          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

          D 1 Reply Last reply
          0
          • V Vasudevan Deepak Kumar

            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

            D Offline
            D Offline
            Doan Quynh
            wrote on last edited by
            #5

            I made it only "Script" and it run well. Thank you very much. I will try ASP.NET handler later.

            QuynhTD

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups