The requested service, ‘http://Service.svc’ could not be activated. See the server’s diagnostic trace logs for more information.


I encountered this error with one of my WCF web services.

The requested service, ‘http://Service.svc’ could not be activated. See the server’s diagnostic trace logs for more information.

So I tried to load the web service directly and got the following error.

Memory gates checking failed because the free memory (523452992 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.

Solution:

Update the web.config in the service host IIS web site and add the following.  Set minFreeMemoryPercentageToActivateService to a lower percentage.

<configuration>
<system.serviceModel>
<serviceHostingEnvironment multipleSiteBindingsEnabled=”true” minFreeMemoryPercentageToActivateService=”1″/>
</system.serviceModel>
</configuration>

 

If you think this post has helped, please support my other blog on Microsoft Office 365 and personal document management and finance at Office 365 Personal.

 

 

 

2 comments

Leave a comment