gateway + desktop.aspx on rdweb 2008r2 not working


hello

some issues here when trying setup gatway aways used default. dose not work. have been searching web , have done everthing has been advased.

i have copyed of desktop.aspx references gateway. welcome.

    // page variables
    //
    public string srootdir, shelpsourceserver, slocalhelp, slocaladminhelp;
    public bool fuseradmin = false, bprivatemode = false;
    public string defaulttsgateway ="gateway.blablabla.bla";
    public string gatewaycredentialssource = "1";

    protected void page_init(object sender, eventargs e)
    {
        defaulttsgateway = configurationmanager.appsettings["defaulttsgateway"].tostring();
        gatewaycredentialssource = configurationmanager.appsettings["gatewaycredentialssource"].tostring();

                     <script type="text/javascript" language="javascript">
                          var defaulttsgateway = '<%=defaulttsgateway %>';
                          var gatewaycredentialssource = '<%=gatewaycredentialssource %>'

                        function btnconnect()
                        {
                            var rdpstr = "full address:s:" + getparam("machinename", true, "") + "\n";
                            rdpstr += "authentication level:i:2\n";
                            rdpstr += "gatewayhostname:s:" +  defaulttsgateway + "\n";
                            rdpstr += "gatewaycredentialssource:i:" +  gatewaycredentialssource + "\n";
                            if ((defaulttsgateway != null) && (defaulttsgateway.length > 0)) {
                                rdpstr += "gatewayusagemethod:i:1\n";
                                rdpstr += "gatewayprofileusagemethod:i:1\n";
                            }
                            else {
                                rdpstr += "gatewayusagemethod:i:1\n";
                                rdpstr += "gatewayprofileusagemethod:i:0\n";
                            }

hi,

please revert original desktops.aspx file, test make sure uses rd gateway.  after successful test, please modify 2 lines in btnconnect function gatewayusagemethod, below:

old version:

rdpstr += "gatewayusagemethod:i:2\n";

new version:

rdpstr += "gatewayusagemethod:i:1\n";

once have made above 2 changes btnconnect please save file, logon rdweb, , test rd gateway still being used.

thanks.

-tp



Windows Server  >  Remote Desktop Services (Terminal Services)



Comments

Popular posts from this blog

2008 Windows Deployment Server Properties Error

Can no longer user MS Update - Files required to use Microsoft Update are no longer registered

How do a find data in one file, search for it in another file and if not found, write a custom message to another file