Skip navigation.


Error loading TS Gateway Manager

Remote Desktop ServicesAnother random problem which luckily I found a German article about.


When opening TS Gateway Manager, you get the following unhandled exception appear:

Unhandled Exception in Managed Code Snap-in
Object reference not set to an instance of an object.
Exception Stack Trace:
   at Microsoft.TerminalServices.Proxy.SnapIn.BackEnd.WmiTerminalServicesGatewayStore.AddServer(String serverName, Boolean getData)
   at Microsoft.TerminalServices.Proxy.SnapIn.TsProxyServer.ConnectToServer(IProgressDisplay progress)
   at Microsoft.TerminalServices.Proxy.SnapIn.SnapInStartPage.SnapInStartPageNode.ConnectToServer(String serverName, Boolean silent)
   at Microsoft.TerminalServices.Proxy.SnapIn.TSProxySnapIn.OnLoadCustomData(AsyncStatus status, Byte[] persistenceData)
   at Microsoft.ManagementConsole.SnapIn.ProcessRequest(Request request)
   at Microsoft.ManagementConsole.Internal.SnapInClient.Microsoft.ManagementConsole.Internal.IMessageClient.ProcessRequest(Request request)
   at Microsoft.ManagementConsole.Internal.IMessageClient.ProcessRequest(Request request)
   at Microsoft.ManagementConsole.Executive.RequestStatus.BeginRequest(IMessageClient messageClient, RequestInfo requestInfo)
   at Microsoft.ManagementConsole.Executive.SnapInRequestOperation.ProcessRequest()
   at Microsoft.ManagementConsole.Executive.Operation.OnThreadTransfer(SimpleOperationCallback callback)


Make sure you have a website called "Default Web Site" in IIS... It doesn't matter what you do with any other properties of the website, just make sure the name on the IIS tree is "Default Web Site"!

You would have thought this sort of exception should be picked up with a nice friendly error message, but there you go.

By on February 1, 2012 | Permalink | Comment

Reader Comments

Skip to form

There are currently no comments about this article.

Comment on This Article:

Your Name:
Your Email Address:

Your Email Address will not be made public,
but the MD5 hash of it will be used to display your Gravatar.
All HTML, except <i>, <b>, <u> will require your comment to be moderated before it is publicly displayed.
If you would like your own avatar displayed, read about comment avatars.