Forum Discussion

David_es_2022's avatar
David_es_2022
Copper Contributor
Nov 25, 2022

remote desktop web client 1.0.27.0 error

Hello,

I've setup a Windows Server 2019 Standard Spanish version with remote desktop.

It has also the remote desktop gateway activated.

I can connect to my remote desktop server using remote desktop web client, "remoteapp and desktop connections" ("conexión de remoteapp y escritorio" in spanish) of control panel and using the old remote desktop web access.

I've installed the remote desktop web server web client access using the tutorial at

https://learn.microsoft.com/en-us/windows-server/remote/remote-desktop-services/clients/remote-desktop-web-client-admin

 

I've tested in different computers : workstations , servers and shows the same error.

 

When i installed first at may 2022 it worked ok, but today when i tested again it doesn't work.

I can access to the remote desktop web page, put the credentials and all the application icons shows with no problem. But when I click on the app icon , it shows the window asking for what to use (clipboard, printer, file transfer)  and when i clik on "permit" ("permitir" in spanish) it shows an error

 

 

I've tested with Firefox, Google Chrome , Vivaldi and Microsoft Edge, all of them with the same error.

It seems some problems with the wasm (web assembly) executed and the browser after the authentication part. 

For what i see in the logs it seems the remote desktop web client connects to the remote desktop server , it authenticates ok, but then it throws an error:

2022-11-25T09:27:21.714Z GatewayHandshakeState(NORM): Entering Gateway connection state GatewayHandshakeState
2022-11-25T09:27:21.759Z ExtendedAuthenticationState(NORM): Entering Gateway connection state ExtendedAuthenticationState
2022-11-25T09:27:21.759Z ExtendedAuthenticationState(NORM): Prompting for Gateway credentials.
2022-11-25T09:27:21.762Z [Connection] Auth challenge
2022-11-25T09:27:21.763Z [SessionViewModel] Credentials requested (username/password)
2022-11-25T09:27:21.764Z ExtendedAuthenticationState::PromptForCredentials(NORM): Credential aquisition completed. Duration in ms: 3
2022-11-25T09:27:21.862Z TunnelInitiationState(NORM): Entering Gateway connection state TunnelInitiationState
2022-11-25T09:27:21.911Z Connection(ERR): The connection generated an internal exception with disconnect code=GatewayProtocolError(52), extended code=<null>, reason=Gateway tunnel creation failed with status code=2147965417
Thrown in thread 1122780 at:
gateway/tunnelinitiationstate.cpp(64)
Call Stack:
Callstacks are currently disabled

connection.cpp(1731): OnException()
Logger/a.errorWithoutTimestamp@https://miwebpage.mydomain.es/RDWeb/webclient/js/client.022fca6d.js:1:2890,b/<@https://miwebpage.mydomain.es/RDWeb/webclient/js/client.022fca6d.js:9:6642,methodCaller_emscripten$$val_$emscripten$$val_emscripten$$val$@https://miwebpage.mydomain.es/RDWeb/webclient/librdp/html/librdphtml.c4af5b60.js line 86 > Function:6:26,__emval_call_method@https://miwebpage.mydomain.es/RDWeb/webclient/librdp/html/librdphtml.c4af5b60.js:86:224640,@https://miwebpage.mydomain.es/RDWeb/webclient/librdp/html/librdphtml.4fe32847.wasm:wasm-function[47]:0x0,invoke_diiiii@https://miwebpage.mydomain.es/RDWeb/webclient/librdp/html/librdphtml.c4af5b60.js:86:256314,@https://miwebpage.mydomain.es/RDWeb/webclient/librdp/html/librdphtml.4fe32847.wasm:wasm-function[8104]:0x444f24,invoke_viii@https://miwebpage.mydomain.es/RDWeb/webclient/librdp/html/librdphtml.c4af5b60.js:86:253457,@https://miwebpage.mydomain.es/RDWeb/webclient/librdp/html/librdphtml.4fe32847.wasm:wasm-function[1465]:0xdee11,@https://miwebpage.mydomain.es/RDWeb/webclient/librdp/html/librdphtml.4fe32847.wasm:wasm-function[1808]:0x10fbad,invoke_vii@https://miwebpage.mydomain.es/RDWeb/webclient/librdp/html/librdphtml.c4af5b60.js:86:253620,@https://miwebpage.mydomain.es/RDWeb/webclient/librdp/html/librdphtml.4fe32847.wasm:wasm-function[7510]:0x389a61,invoke_vii@https://miwebpage.mydomain.es/RDWeb/webclient/librdp/html/librdphtml.c4af5b60.js:86:253620,@https://miwebpage.mydomain.es/RDWeb/webclient/librdp/html/librdphtml.4fe32847.wasm:wasm-function[729]:0x664a0,OnMessageCallback$Invoke@https://miwebpage.mydomain.es/RDWeb/webclient/librdp/html/librdphtml.c4af5b60.js line 86 > Function:9:8,1133509/attachingObject.CreateMessageInvoker/<@https://miwebpage.mydomain.es/RDWeb/webclient/librdp/html/librdphtml.c4af5b60.js:86:26127,
2022-11-25T09:27:21.914Z [Connection] Disconnecting
2022-11-25T09:27:21.914Z WebSocketTransport(NORM): Connection close initiated for url=wss://miwebpage.mydomain.es:443/remoteDesktopGateway?CorId=%7Bd270943c-906d-4dc9-9e5e-d84a96760000%7D&ConId=%7B6fcacfb9-70af-4d4b-951f-e04ee183ec21%7D&ClGen=HTML%3D1&ClBld=Type%3DRdClient%3B%20Build%3Dprivate&AuthS=SSPI_NTLM, code=1000, reason="NormalClosure(1000)"
2022-11-25T09:27:21.915Z GatewayTransport(NORM): GatewayTransport closed.
2022-11-25T09:27:21.915Z [Connection] Disconnected

 

These are the contents of the log file:

 

2022-11-25T09:27:18.245Z Exception: Possibly unhandled rejection: cancel Cause: undefined
Logger/a.error@https://miwebpage.mydomain.es/RDWeb/webclient/js/client.022fca6d.js:1:3102,a/</<@https://miwebpage.mydomain.es/RDWeb/webclient/js/client.022fca6d.js:9:5541,i@https://miwebpage.mydomain.es/RDWeb/webclient/js/components.cf2fa554.js:5:27560,$digest@https://miwebpage.mydomain.es/RDWeb/webclient/js/components.cf2fa554.js:6:1569,$apply@https://miwebpage.mydomain.es/RDWeb/webclient/js/components.cf2fa554.js:6:3503,ed/compile/</<@https://miwebpage.mydomain.es/RDWeb/webclient/js/components.cf2fa554.js:6:25349,dispatch@https://miwebpage.mydomain.es/RDWeb/webclient/js/components.cf2fa554.js:2:17308,add/q.handle@https://miwebpage.mydomain.es/RDWeb/webclient/js/components.cf2fa554.js:2:15284,
2022-11-25T09:27:19.460Z RdpFileParser(NORM): Setting "redirectclipboard" = "1"
2022-11-25T09:27:19.460Z RdpFileParser(NORM): Setting "redirectprinters" = "1"
2022-11-25T09:27:19.461Z RdpFileParser(NORM): Setting "redirectcomports" = "1"
2022-11-25T09:27:19.461Z RdpFileParser(NORM): Setting "redirectsmartcards" = "0"
2022-11-25T09:27:19.461Z RdpFileParser(NORM): Setting "devicestoredirect" = ""
2022-11-25T09:27:19.461Z RdpFileParser(NORM): Setting "drivestoredirect" = "*"
2022-11-25T09:27:19.461Z RdpFileParser(NORM): Setting "redirectdrives" = "1"
2022-11-25T09:27:19.461Z RdpFileParser(NORM): Setting "session bpp" = "32"
2022-11-25T09:27:19.461Z RdpFileParser(NORM): Setting "prompt for credentials on client" = "1"
2022-11-25T09:27:19.461Z RdpFileParser(NORM): Setting "span monitors" = "1"
2022-11-25T09:27:19.462Z RdpFileParser(NORM): Setting "use multimon" = "1"
2022-11-25T09:27:19.462Z RdpFileParser(NORM): Setting "remoteapplicationmode" = "1"
2022-11-25T09:27:19.462Z RdpFileParser(NORM): Setting "server port" = "10022"
2022-11-25T09:27:19.462Z RdpFileParser(NORM): Setting "allow font smoothing" = "1"
2022-11-25T09:27:19.462Z RdpFileParser(NORM): Setting "promptcredentialonce" = "1"
2022-11-25T09:27:19.462Z RdpFileParser(NORM): Setting "gatewayusagemethod" = "1"
2022-11-25T09:27:19.462Z RdpFileParser(NORM): Setting "gatewayprofileusagemethod" = "1"
2022-11-25T09:27:19.462Z RdpFileParser(NORM): Setting "gatewaycredentialssource" = "0"
2022-11-25T09:27:19.462Z RdpFileParser(NORM): Setting "full address" = "miwebpage.mydomain.es"
2022-11-25T09:27:19.462Z RdpFileParser(NORM): Setting "alternate shell" = "||Calma"
2022-11-25T09:27:19.462Z RdpFileParser(NORM): Setting "remoteapplicationprogram" = "||Calma"
2022-11-25T09:27:19.462Z RdpFileParser(NORM): Setting "gatewayhostname" = "miwebpage.mydomain.es"
2022-11-25T09:27:19.462Z RdpFileParser(NORM): Setting "remoteapplicationname" = "Calma"
2022-11-25T09:27:19.462Z RdpFileParser(NORM): Setting "remoteapplicationcmdline" = ""
2022-11-25T09:27:19.462Z RdpFileParser(NORM): Setting "workspace id" = "miwebpage.mydomain.es"
2022-11-25T09:27:19.462Z RdpFileParser(NORM): Setting "use redirection server name" = "1"
2022-11-25T09:27:19.463Z RdpFileParser(NORM): Setting "loadbalanceinfo" = "tsv://MS Terminal Services Plugin.1.QuickSessionCollection"
2022-11-25T09:27:19.463Z RdpFileParser(NORM): Setting "alternate full address" = "miwebpage.mydomain.es"
2022-11-25T09:27:19.463Z RdpFileParser(NORM): Setting "signscope" = "Full Address,Alternate Full Address,Use Redirection Server Name,Server Port,GatewayHostname,GatewayUsageMethod,GatewayProfileUsageMethod,GatewayCredentialsSource,PromptCredentialOnce,Alternate Shell,RemoteApplicationProgram,RemoteApplicationMode,RemoteApplicationName,RemoteApplicationCmdLine,RedirectDrives,RedirectPrinters,RedirectCOMPorts,RedirectSmartCards,RedirectClipboard,DevicesToRedirect,DrivesToRedirect,LoadBalanceInfo"
2022-11-25T09:27:19.463Z RdpFileParser(NORM): Setting "signature" = " xxxx signature xxxx "
2022-11-25T09:27:19.464Z [SessionFactory] Redirections request
2022-11-25T09:27:21.079Z [SessionFactory] Redirection settings selected by user:
id: null
clipboard: true
printer: true
audioInput: true
drive: true
rememberCollection: false

2022-11-25T09:27:21.079Z [ConnectionFactory] Creating connection to:
2022-11-25T09:27:21.079Z {"hostName":"miwebpage.mydomain.es","port":10022,"gatewayHostName":"miwebpage.mydomain.es","gatewayPort":443,"remoteApplicationMode":true,"remoteApplicationProgram":"||Calma","remoteApplicationCmdLine":"","connectionSettings":{"AzureRemoteApp":false},"tenantId":null,"properties":{"AzureRemoteApp":false},"EventLogUploadAddress":"","GatewayCertLogonAuthority":""}
2022-11-25T09:27:21.080Z RdClientConnectionProxy::Create(NORM): LibRDP version: 1.27.0
2022-11-25T09:27:21.080Z RdClientConnectionProxy::Create(NORM): loading webworkers from path: https://miwebpage.mydomain.es/RDWeb/webclient/librdp/html/librdphtml.c4af5b60.js
2022-11-25T09:27:21.086Z WebWorker(NORM): Created Webworker with path: https://miwebpage.mydomain.es/RDWeb/webclient/librdp/html/librdphtml.c4af5b60.js onMessage: HandleConnectionMessage
2022-11-25T09:27:21.091Z TLS::EnsureOSSLSeeded(NORM): A seed of 256 bytes has been provided for OSSL
2022-11-25T09:27:21.099Z [SessionProvider] Connection created event received.
2022-11-25T09:27:21.099Z [SessionFactory] Launching remote app: ||Calma
2022-11-25T09:27:21.099Z [Connection] Rail is not active adding application to pending list: ||Calma
2022-11-25T09:27:21.099Z [SessionProvider] Session created received in provider
2022-11-25T09:27:21.099Z [SessionViewModel] Session created event received for: b2bd8a36-7bdb-4335-8dea-3d6bdb89ddb0
2022-11-25T09:27:21.099Z [Connection] Connection.connect called
2022-11-25T09:27:21.099Z [SessionViewModel] Received monitorBound event on UI layer
2022-11-25T09:27:21.099Z [Connection] Using default scaleFactor of 1
2022-11-25T09:27:21.107Z [Session] Session focus changed to true id:b2bd8a36-7bdb-4335-8dea-3d6bdb89ddb0 window id:null
2022-11-25T09:27:21.107Z [SessionViewModel] Session focused event received in view model session id: b2bd8a36-7bdb-4335-8dea-3d6bdb89ddb0
2022-11-25T09:27:21.107Z Setting KeyboardLayout :1033 KeyboardType :[object Object] KeyboardSubType :0
2022-11-25T09:27:21.107Z Value of UseConnectionWebWorkers flag = true
2022-11-25T09:27:21.462Z Connection(NORM): Connection created with correlation ID={d270943c-906d-4dc9-9e5e-d84a96760000}
2022-11-25T09:27:21.463Z RdClientConnection::Create(NORM): LibRDP version: 1.27.0
2022-11-25T09:27:21.463Z Connection::Initialize(NORM): LibRDP version: 1.27.0
2022-11-25T09:27:21.466Z DVCManager(NORM): Registered plugin DisplayControlGraphicsPlugin
2022-11-25T09:27:21.467Z DVCManager(NORM): Registered plugin InputPlugin
2022-11-25T09:27:21.468Z Html5FilesystemDevice(NORM): File system successfully mounted at /html5fs
2022-11-25T09:27:21.468Z Html5FilesystemDevice::PullIndexedDBChanges(NORM): Pulling FS changes from IndexedDB
2022-11-25T09:27:21.469Z DVCManager(NORM): Registered plugin GfxChannelGraphicsPlugin
2022-11-25T09:27:21.480Z Connection(NORM): SetMonitorLayout called with width 1120, height 592, orientation 0, scaleFactor 100
2022-11-25T09:27:21.484Z DVCManager(NORM): Creating plugin DisplayControlGraphicsPlugin
2022-11-25T09:27:21.484Z DVCManager(NORM): Registering a listener for DVC Microsoft::Windows::RDS::DisplayControl
2022-11-25T09:27:21.485Z DVCManager(NORM): Creating plugin GfxChannelGraphicsPlugin
2022-11-25T09:27:21.486Z DVCManager(NORM): Registering a listener for DVC Microsoft::Windows::RDS::Graphics
2022-11-25T09:27:21.487Z DVCManager(NORM): Creating plugin InputPlugin
2022-11-25T09:27:21.488Z DVCManager(NORM): Registering a listener for DVC Microsoft::Windows::RDS::Input
2022-11-25T09:27:21.488Z GatewayTransport(NORM): Using the Gateway protocol variation for RD Gateway (on-prem)...
2022-11-25T09:27:21.488Z BaseTransportConnectState(NORM): Entering Gateway connection state BaseTransportConnectState
2022-11-25T09:27:21.496Z WebSocketTransport(NORM): Connection process begun for url=wss://miwebpage.mydomain.es:443/remoteDesktopGateway?CorId=%7Bd270943c-906d-4dc9-9e5e-d84a96760000%7D&ConId=%7B6fcacfb9-70af-4d4b-951f-e04ee183ec21%7D&ClGen=HTML%3D1&ClBld=Type%3DRdClient%3B%20Build%3Dprivate&AuthS=SSPI_NTLM
2022-11-25T09:27:21.497Z GatewayTransport(NORM): GatewayTransport connecting...
2022-11-25T09:27:21.498Z [Connection] Connection state changed to: Opening remote port
2022-11-25T09:27:21.499Z [SessionViewModel] Session b2bd8a36-7bdb-4335-8dea-3d6bdb89ddb0 changed canvas display to none
2022-11-25T09:27:21.714Z GatewayHandshakeState(NORM): Entering Gateway connection state GatewayHandshakeState
2022-11-25T09:27:21.759Z ExtendedAuthenticationState(NORM): Entering Gateway connection state ExtendedAuthenticationState
2022-11-25T09:27:21.759Z ExtendedAuthenticationState(NORM): Prompting for Gateway credentials.
2022-11-25T09:27:21.762Z [Connection] Auth challenge
2022-11-25T09:27:21.763Z [SessionViewModel] Credentials requested (username/password)
2022-11-25T09:27:21.764Z ExtendedAuthenticationState::PromptForCredentials(NORM): Credential aquisition completed. Duration in ms: 3
2022-11-25T09:27:21.862Z TunnelInitiationState(NORM): Entering Gateway connection state TunnelInitiationState
2022-11-25T09:27:21.911Z Connection(ERR): The connection generated an internal exception with disconnect code=GatewayProtocolError(52), extended code=<null>, reason=Gateway tunnel creation failed with status code=2147965417
Thrown in thread 1122780 at:
gateway/tunnelinitiationstate.cpp(64)
Call Stack:
Callstacks are currently disabled

connection.cpp(1731): OnException()
Logger/a.errorWithoutTimestamp@https://miwebpage.mydomain.es/RDWeb/webclient/js/client.022fca6d.js:1:2890,b/<@https://miwebpage.mydomain.es/RDWeb/webclient/js/client.022fca6d.js:9:6642,methodCaller_emscripten$$val_$emscripten$$val_emscripten$$val$@https://miwebpage.mydomain.es/RDWeb/webclient/librdp/html/librdphtml.c4af5b60.js line 86 > Function:6:26,__emval_call_method@https://miwebpage.mydomain.es/RDWeb/webclient/librdp/html/librdphtml.c4af5b60.js:86:224640,@https://miwebpage.mydomain.es/RDWeb/webclient/librdp/html/librdphtml.4fe32847.wasm:wasm-function[47]:0x0,invoke_diiiii@https://miwebpage.mydomain.es/RDWeb/webclient/librdp/html/librdphtml.c4af5b60.js:86:256314,@https://miwebpage.mydomain.es/RDWeb/webclient/librdp/html/librdphtml.4fe32847.wasm:wasm-function[8104]:0x444f24,invoke_viii@https://miwebpage.mydomain.es/RDWeb/webclient/librdp/html/librdphtml.c4af5b60.js:86:253457,@https://miwebpage.mydomain.es/RDWeb/webclient/librdp/html/librdphtml.4fe32847.wasm:wasm-function[1465]:0xdee11,@https://miwebpage.mydomain.es/RDWeb/webclient/librdp/html/librdphtml.4fe32847.wasm:wasm-function[1808]:0x10fbad,invoke_vii@https://miwebpage.mydomain.es/RDWeb/webclient/librdp/html/librdphtml.c4af5b60.js:86:253620,@https://miwebpage.mydomain.es/RDWeb/webclient/librdp/html/librdphtml.4fe32847.wasm:wasm-function[7510]:0x389a61,invoke_vii@https://miwebpage.mydomain.es/RDWeb/webclient/librdp/html/librdphtml.c4af5b60.js:86:253620,@https://miwebpage.mydomain.es/RDWeb/webclient/librdp/html/librdphtml.4fe32847.wasm:wasm-function[729]:0x664a0,OnMessageCallback$Invoke@https://miwebpage.mydomain.es/RDWeb/webclient/librdp/html/librdphtml.c4af5b60.js line 86 > Function:9:8,1133509/attachingObject.CreateMessageInvoker/<@https://miwebpage.mydomain.es/RDWeb/webclient/librdp/html/librdphtml.c4af5b60.js:86:26127,
2022-11-25T09:27:21.914Z [Connection] Disconnecting
2022-11-25T09:27:21.914Z WebSocketTransport(NORM): Connection close initiated for url=wss://miwebpage.mydomain.es:443/remoteDesktopGateway?CorId=%7Bd270943c-906d-4dc9-9e5e-d84a96760000%7D&ConId=%7B6fcacfb9-70af-4d4b-951f-e04ee183ec21%7D&ClGen=HTML%3D1&ClBld=Type%3DRdClient%3B%20Build%3Dprivate&AuthS=SSPI_NTLM, code=1000, reason="NormalClosure(1000)"
2022-11-25T09:27:21.915Z GatewayTransport(NORM): GatewayTransport closed.
2022-11-25T09:27:21.915Z [Connection] Disconnected
2022-11-25T09:27:21.917Z [SessionViewModel] Received retireCanvas event on UI layer, connectionID=d270943c-906d-4dc9-9e5e-d84a96760000
2022-11-25T09:27:21.917Z [SessionProvider] Session disconnect received in provider
2022-11-25T09:27:21.917Z [SessionViewModel] Received didDisconnect event on UI layer
2022-11-25T09:27:21.917Z [Connection] Cleaning up connection
2022-11-25T09:27:21.917Z [SessionProvider] Connection destroyed event received.
2022-11-25T09:27:21.917Z [SessionProvider] Session disconnect received in provider
2022-11-25T09:27:21.918Z [SessionViewModel] Received didDisconnect event on UI layer
2022-11-25T09:27:21.952Z [SessionViewModel] Canvas lost focus
2022-11-25T09:27:26.930Z [Connection] Timed out waiting for onDiagnosticsComplete. Destroying connection object.
2022-11-25T09:27:26.933Z WebWorker(NORM): Destroying Webworker

 

 

 

10 Replies

  • Pat55's avatar
    Pat55
    Copper Contributor
    Hi,
    please check if you're NPS Server (part of RD Gateway) is correctly registered in Active Directory.

    https://learn.microsoft.com/en-us/windows-server/networking/technologies/nps/nps-manage-register
    • David645's avatar
      David645
      Copper Contributor
      Hello,
      I've chequed the link you provided.
      In NPS Server , the "register nps on active directory" option is grayed on the menu,, i cannot click it.

      Thank you for the help.

      Still isn't working remote desktop web client.
      • Pat55's avatar
        Pat55
        Copper Contributor
        Hi, please check the NPS Logs in the Event viewer on the Gateway Server

        Event Viewer / Custom Views /Server Roles / Network Policy and Access Services.
        Probably you have to change your RAP and/or Cap Pollices on your Gateway server

        cheers

Resources