Source: System>serviceModel 4.0.0.0 ID 3 /Remote/BuiltIns/HomePage/GadgetDnD/GadgetDnDService.svc - Memory gates checking failed

stratserv
stratserv used Ask the Experts™
on
Client's server is SBS 2011.  Since they had Remote Web Access on a previous server, they asked for access for a single user on this server.  When the user goes to the Computers section and hits the "Connect" button, nothing happens, but the Event VIewer is filled with these error messages.  The server has 32 GB of memory.  The old server had only 16 GB memory and this service was apparently working well.  Obviously a configuration issue, but my web searches have not so far been helpful.  The last time I worked with SBS was 2003 and I am extremely rusty (and wishing I had never taken on this particular customer).
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
David AtkinTechnical Director
Top Expert 2015

Commented:
Hello,

You said that they were using another server for remote web access?  Was this a server installed with the Remote Desktop Gateway role or was this just a server with direct RDP?

Can you upload the error messages that you are getting.

A good start would be to run the Fix My Network wizard from within the SBS Console.
SBS Console> Network Tab> Connectivity sub tab> click the 'Fix My Network' wizard from the right hand side.
Report back any errors / warning its states.

In addition - I would run download and install the SBS Best Practice Analyser and run a scan to search for potential errors.
https://support.microsoft.com/en-us/kb/2673284

Author

Commented:
Log Name:      Application
Source:        System.ServiceModel 4.0.0.0
Date:          7/28/2015 5:31:01 PM
Event ID:      3
Task Category: WebHost
Level:         Error
Keywords:      Classic
User:          NETWORK SERVICE
Computer:      CKDSERVER01.cheryldavid.local
Description:
WebHost failed to process a request.
 Sender Information: System.ServiceModel.ServiceHostingEnvironment+HostingManager/12547953
 Exception: System.ServiceModel.ServiceActivationException: The service '/Remote/BuiltIns/HomePage/GadgetDnD/GadgetDnDService.svc' cannot be activated due to an exception during compilation.  The exception message is: Memory gates checking failed because the free memory (1360703488 bytes) is less than 5% of total memory.  As a result, the service will not be available for incoming requests.  To resolve this, either reduce the load on the machine or adjust the value of minFreeMemoryPercentageToActivateService on the serviceHostingEnvironment config element.. ---> System.InsufficientMemoryException: Memory gates checking failed because the free memory (1360703488 bytes) is less than 5% of total memory.  As a result, the service will not be available for incoming requests.  To resolve this, either reduce the load on the machine or adjust the value of minFreeMemoryPercentageToActivateService on the serviceHostingEnvironment config element.
   at System.ServiceModel.Activation.ServiceMemoryGates.Check(Int32 minFreeMemoryPercentage, Boolean throwOnLowMemory, UInt64& availableMemoryBytes)
   at System.ServiceModel.ServiceHostingEnvironment.HostingManager.CheckMemoryCloseIdleServices(EventTraceActivity eventTraceActivity)
   at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity)
   --- End of inner exception stack trace ---
   at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity)
   at System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String relativeVirtualPath, EventTraceActivity eventTraceActivity)
 Process Name: w3wp
 Process ID: 22316Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="System.ServiceModel 4.0.0.0" />
    <EventID Qualifiers="49154">3</EventID>
    <Level>2</Level>
    <Task>5</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2015-07-28T21:31:01.000000000Z" />
    <EventRecordID>34450</EventRecordID>
    <Channel>Application</Channel>
    <Computer>CKDSERVER01.cheryldavid.local</Computer>
    <Security UserID="S-1-5-20" />
  </System>
  <EventData>
    <Data>System.ServiceModel.ServiceHostingEnvironment+HostingManager/12547953</Data>
    <Data>System.ServiceModel.ServiceActivationException: The service '/Remote/BuiltIns/HomePage/GadgetDnD/GadgetDnDService.svc' cannot be activated due to an exception during compilation.  The exception message is: Memory gates checking failed because the free memory (1360703488 bytes) is less than 5% of total memory.  As a result, the service will not be available for incoming requests.  To resolve this, either reduce the load on the machine or adjust the value of minFreeMemoryPercentageToActivateService on the serviceHostingEnvironment config element.. ---&gt; System.InsufficientMemoryException: Memory gates checking failed because the free memory (1360703488 bytes) is less than 5% of total memory.  As a result, the service will not be available for incoming requests.  To resolve this, either reduce the load on the machine or adjust the value of minFreeMemoryPercentageToActivateService on the serviceHostingEnvironment config element.
   at System.ServiceModel.Activation.ServiceMemoryGates.Check(Int32 minFreeMemoryPercentage, Boolean throwOnLowMemory, UInt64&amp; availableMemoryBytes)
   at System.ServiceModel.ServiceHostingEnvironment.HostingManager.CheckMemoryCloseIdleServices(EventTraceActivity eventTraceActivity)
   at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity)
   --- End of inner exception stack trace ---
   at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity)
   at System.ServiceModel.ServiceHostingEnvironment.EnsureServiceAvailableFast(String relativeVirtualPath, EventTraceActivity eventTraceActivity)</Data>
    <Data>w3wp</Data>
    <Data>22316</Data>
  </EventData>
</Event>


This is a fresh install on new hardware.  Old server no longer exists, but it was also SBS 2011.  They had hardware failures and their IT guy disappeared.  We are batting clean up.  No documentation.  Lots of mysteries.
Technical Director
Top Expert 2015
Commented:
Have a look at the following question which is a similar problem -
http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Q_28329181.html

To resolve the problem you need to edit the web.config file located here:
C:\Program Files\Windows Small Business Server\Bin\WebApp\RemoteAccess

First, take a copy of the web.config file just in case.

Find the line <serviceHostingEnvironment aspNetCompatibilityEnabled="true" />

Change it to be (all one line) <serviceHostingEnvironment aspNetCompatibilityEnabled="true" minFreeMemoryPercentageToActivateService="0" />

Open a command line window and type the command IISRESET to reset IIS
Become a CompTIA Certified Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

Author

Commented:
I'll give this a try as soon as I can get back to that server.
David AtkinTechnical Director
Top Expert 2015

Commented:
No worries, let us know the outcome.

Author

Commented:
Will be at the client to work on this today.

Author

Commented:
Worked like a charm.  I had handled the connectivity issue for a single user with a VPN client (better in that case anyway), but having this available for folks on vacation, etc. will make the customer very happy.
David AtkinTechnical Director
Top Expert 2015

Commented:
Great news. Glad you got your problem resolved.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial