The error message you're encountering, "Remote Desktop can't connect to the remote computer (name) for one of these reasons," suggests that there might be issues related to the RDWeb configuration or its interaction with the RD Gateway.
Given the troubleshooting steps you've already taken, here's a more focused approach:
1. RD Gateway Configuration
Since the error references the internal/private name in the error, it suggests there might be a misconfiguration in how the RD Gateway is handling the connection.
Double-check the RD Gateway settings in RD Gateway Manager. Ensure that the "Bypass RD Gateway server for local addresses" option is configured correctly. It might be useful to test with Bypass enabled or disabled depending on your network topology.
Ensure that RD Gateway is correctly configured to point to the public DNS name for external access, and the private DNS name for internal access.
2. SSL/TLS and Certificates
It looks like you've replaced the certificate in IIS and the RD Gateway, but ensure that the same certificate is used across all components (RD Gateway, IIS, RD Web).
Ensure the certificate chain is complete and correctly trusted by the server. Sometimes, intermediate certificates may cause issues.
Verify that SNI (Server Name Indication) is correctly set up on your IIS server, as it can impact access to the RDWeb page if there are multiple certificates.
3. NPS Logs (4402 Event)
The "There is no domain controller for the domain" error suggests there could be an issue with NPS (Network Policy Server) not reaching the domain controller. This could indicate a DNS issue or a network connectivity issue between the RD Gateway and the domain controller.
Make sure that the DNS is properly configured on the server and that it's able to resolve the domain name and the DC's IP.
Test connectivity to the domain controller from the RD Gateway server to ensure there are no network issues.
4. User and Group Permissions
While you've verified that the user has sufficient privileges, ensure that the user group memberships and RDS permissions are correctly configured for the remote desktop session.
Check the "Remote Desktop Users" group and ensure that the user is a member of the appropriate group for remote access.
5. Testing with Different Clients
Try connecting from different clients (both internal and external) to see if the issue persists. Sometimes client configurations or local network issues might be contributing to the error.
6. Check the Application and System Logs
You mentioned an ASP .NET 4 Event Code 3005 error. This could indicate an issue with the web page or application pool in IIS that serves RDWeb. Consider restarting IIS and reviewing the application pool settings for any misconfigurations.
7. Firewall and AV
Even though the Windows Firewall is off and AV isn't quarantining any files, it’s worth temporarily disabling any security software to test if it is causing the issue.
Windows Client for IT Pros and Windows Server forums are moving to Microsoft Q&A
We’re transitioning to Microsoft Q&A for a more streamlined experience. Starting February 26th*, new questions can only be posted on* Microsoft Q&A. Existing discussions will remain accessible here.
Beginning March 3rdcustomers looking for support on Answers will be automatically redirected to Microsoft Q&A.