Event ID 306 in TerminalServices-Gateway Log When Trying to Connect with Remote Console for Windows Azure Pack

I’ve just configure Remote Console for Windows Azure Pack and when I’ve tested to connect to VM I’ve received error. In order to get insight for the error I’ve logged on the RD Gateway server and open TerminalServices-Gateway log. The following error was logged:


The user “Unknown”, on client computer “”, was not authorized to connect to the RD Gateway server because a tunnel could not be created. The authentication method attempted: “Cookie” and connection protocol “HTTP”. The following error occurred: “2147965400”.

<Event xmlns=”http://schemas.microsoft.com/win/2004/08/events/event”&gt;


<Provider Name=”Microsoft-Windows-TerminalServices-Gateway” Guid=”{4D5AE6A1-C7C8-4E6D-B840-4D8080B42E1B}” />







<TimeCreated SystemTime=”2014-05-10T07:30:00.413530500Z” />


<Correlation ActivityID=”{B8A56545-62BE-4CDC-A82C-4D0698260000}” />

<Execution ProcessID=”4552″ ThreadID=”5184″ />



<Security UserID=”S-1-5-20″ />



<EventInfo xmlns=”aag”>




<Resource />






I’ve opened RD Gateway Manager Console on the RD Gateway server also. There I saw a warning that IIS is not configured correctly.

I’ve fired up PowerShell in Administrator mode and executed iisreset.

After a few seconds I was able to connect to a VM with Remote Console in Windows Azure Pack.

Conclusion: After configuring RD Gateway for Remote Console iisreset might be required for proper working of the gateway.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.