Microsoft Terminal Services Gateway Server stops working after a restart

Posted on 2012-08-13
Last Modified: 2014-05-07
I restarted my Terminal Services Gateway server which is running on Windows 2008. On restart, I receive a message that MMC could not create the Snap-in when I try to look at Server Manager, Terminal Services Configuration or even my event viewer. Under services, I am unable to start the 'Terminal Services Gateway'. I get error 1068 and refernce to dependency services not starting, but all the other Terminal services related services have started so not sure which dependency service is stopping TSG from starting or stopping any of the MMC from loading.
I have checked and all dependency services have started except World wide web publishing services, which itself is unable to start because another dependency service Windows Process Activation Service is reporting error 50: The request is not supported.

I have restarted this server in the past and nothing like this has ever happened.

Thank you
Question by:GospodinRasputin
    LVL 11

    Assisted Solution

    Without WWW Publishing service you can not start the TSG. Check this article which also includes a fix:
    LVL 15

    Accepted Solution

    go to services right click terminal server gateway service - properties- dependancies-

    here u'll find the dependancy service which should be start mode...


    all the best

    Author Comment

    Even using the method suggested in the kb article, I still can't get Windows Proacess activation Service (WAS) and w3svc to start.

    In eventviewer, I see Event ID 5189 "The Windows Process Activation Service failed to generate an application pool config file for application pool '*'. The error type is '0'. To resolve this issue, please ensure that the applicationhost.config file is correct and recommit the last configuration changes made. The data field contains the error number."

    Event 5172 ; The Windows Process Activation Service encountered an error trying to read configuration data from file '\\?\C:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG\machine.config', line number '146'.  The error message is: 'The configuration section 'system.serviceModel' cannot be read because it is missing a section declaration
    '.  The data field contains the error number."

    Event 5036 The Windows Process Activation Service received a change notification, but was unable to process it correctly.  The data field contains the error number.

    Event ID 5005 "Windows Process Activation Service (WAS) is stopping because it encountered an error. The data field contains the error number."

    These does appear to be an issue caused by the latest windows update which probably did not apply correctly. I will remove the windows update applied just before the restart and see if anything changes.

    Author Comment

    None of the sggested solutions above worked.

    Author Comment

    There seems to be a problem with the Server 2008 software on this server as I cannot even do windows update or install any services or browse the internet from the Server.

    I will reinstall the OS and see if it allows me otherwise it reboots about three times , tries to install Terminal Services each time but fails, then gives up trying.

    Author Comment

    I wish to close ths question as it doesn't seem to have a solution.

    Author Comment

    Please let me know how to close without awarding marks

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    User Beware!  This is a rather permanent solution to removing your email from an exchange server.  The only way to truly go back is to have your exchange administrator restore your mailbox from backups.  This is usually the option of last resort.  A…
    The new Microsoft OS looks great, is easier than ever to upgrade to, it is even free.  So what's the catch?  If you don't change the privacy settings, Microsoft will, in accordance with the (EULA) you clicked okay to without reading, collect all the…
    The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
    The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now