If you're seeing the error "The gateway server requested a redirect (0x302)", you may need to change the RD Gateway's configuration settings.
The reason you're seeing the error is when RDWeb and RD Gateway are hosted on the same server and IIS is set to redirect all HTTP requests the RDWeb web page. To fix this you must make sure not requests to the /rpc directory do not get redirected to RDWeb. Here's how you can do this:
- Open up Internet Information Services (IIS) Manager.
- In the Connections pane expand to Your Server -> Sites -> Default Website.
- On the right pane double click HTTP Redirect.
- Make sure Only redirect requests to content in this directory (not subdirectories) is checked.
- Click Apply