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:

image

The user “Unknown”, on client computer “192.168.100.6”, 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;

<System>

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

<EventID>306</EventID>

<Version>0</Version>

<Level>2</Level>

<Task>3</Task>

<Opcode>43</Opcode>

<Keywords>0x4000000001000000</Keywords>

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

<EventRecordID>18</EventRecordID>

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

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

<Channel>Microsoft-Windows-TerminalServices-Gateway/Operational</Channel>

<Computer>rdgwserver.contoso.com</Computer>

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

</System>

<UserData>

<EventInfo xmlns=”aag”>

<Username>Unknown</Username>

<IpAddress>192.168.100.6</IpAddress>

<AuthType>Cookie</AuthType>

<Resource />

<ConnectionProtocol>HTTP</ConnectionProtocol>

<ErrorCode>2147965400</ErrorCode>

</EventInfo>

</UserData>

</Event>

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.

Advertisements

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s