The computer uses Windows Server 2008 R1 with IIS 7.0 and it runs a building management system that should open a "Test.exe" file when the user clicks a button.
<br>
Upon clicking the button, the link "localhost/docs/Test.exe" is executed in Internet explorer to open the file.
<br>
However, instead of opening the file, i get a "HTTP-Fehler 502.1 - Bad Gateway" error.
As Martin mentioned, the error returned by CGI handler. If you want to download test.exe file directly, you can disable the handler mapping by using steps below:
1. Open IIS Manager, navigate to your site
2. Double-click handler mappings, click Edit Feature Permissions... in right Actions pane
3.Uncheck Execute.
Or you remove the handler mapping for .exe directly.
Thanks.
Please mark the replies as answers if they help or unmark if not.
Feedback to us
fc.ing
3 Posts
How to solve HTTP-Error 502.1 - Bad Gateway ??
Dec 15, 2011 02:22 PM|LINK
The computer uses Windows Server 2008 R1 with IIS 7.0 and it runs a building management system that should open a "Test.exe" file when the user clicks a button.
<br>
Upon clicking the button, the link "localhost/docs/Test.exe" is executed in Internet explorer to open the file.
<br>
However, instead of opening the file, i get a "HTTP-Fehler 502.1 - Bad Gateway" error.
<br>
How do i solve this??
<br><br>
Thank you very much
HCamper
8048 Posts
Re: How to solve HTTP-Error 502.1 - Bad Gateway ??
Dec 15, 2011 05:26 PM|LINK
Hi,
The 502.1 - Bad Gateway Error MS KB942059 http://support.microsoft.com/kb/942059 .
IIS Server reference & Settings:
http://www.iis.net/ConfigReference/system.webServer/cgi and http://www.iis.net/ConfigReference/system.webServer/security/isapiCgiRestriction .
Stack Over Flow Why do I Get "Bad Gateway Errors" Perl and CGI Program on IIS Server.
http://stackoverflow.com/questions/2741268/why-do-i-get-a-bad-gateway-error-with-my-perl-cgi-program-on-iis
Martin
Community Member Award 2011
Leo Tang - M...
4161 Posts
Microsoft
Re: How to solve HTTP-Error 502.1 - Bad Gateway ??
Dec 19, 2011 05:53 AM|LINK
Hi,
As Martin mentioned, the error returned by CGI handler. If you want to download test.exe file directly, you can disable the handler mapping by using steps below:
1. Open IIS Manager, navigate to your site
2. Double-click handler mappings, click Edit Feature Permissions... in right Actions pane
3.Uncheck Execute.
Or you remove the handler mapping for .exe directly.
Thanks.
Feedback to us
Develop and promote your apps in Windows Store
HCamper
8048 Posts
Re: How to solve HTTP-Error 502.1 - Bad Gateway ??
Dec 19, 2011 12:32 PM|LINK
Hi,
I suggest you look at Impact of Session 0 http://msdn.microsoft.com/en-us/windows/hardware/gg463353
if your executing the test.exe.
Martin
Community Member Award 2011
fc.ing
3 Posts
Re: How to solve HTTP-Error 502.1 - Bad Gateway ??
Jan 05, 2012 10:50 AM|LINK
TQ Leo Tang, problem solved