Tagged: IIS

HTTP 502 Error while downloading exe from website

Level: Beginner

Have you ever got HTTP 502 error or CGI error while trying to download an exe from an IIS 5.0/ASP website ? If yes, it is worth checking “Execute Permissions” on that virtual directory. If the permissiona are set to “Script Only” then the executable files are treated like static HTML files and when try to access with a link like this, download of the file will start. If this is set to “Scripts and Executables” it will think that you are trying to execute the exe and will end up in HTTP 502 or CGI error in IIS!