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

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).
stratservAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David AtkinTechnical DirectorCommented:
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
stratservAuthor 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.
David AtkinTechnical DirectorCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Angular Fundamentals

Learn the fundamentals of Angular 2, a JavaScript framework for developing dynamic single page applications.

stratservAuthor Commented:
I'll give this a try as soon as I can get back to that server.
David AtkinTechnical DirectorCommented:
No worries, let us know the outcome.
stratservAuthor Commented:
Will be at the client to work on this today.
stratservAuthor 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 DirectorCommented:
Great news. Glad you got your problem resolved.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
SBS

From novice to tech pro — start learning today.