Error: The Requested Service, AppMng.svc Could Not be Activated

In this article you will see how to resolve "Error: The requested service, AppMng.svc could not be activated "in SharePoint 2013.

Introduction

I created a SharePoint 2013 workflow using Designer and when I tried to publish the workflow I was getting the following error:

Workflow1.jpg

Error Message

Errors were found when compiling the workflow. The workflow files were saved but could not be run.

System.ServiceModel.ServiceActivationException: The requested service, 'http://c4968397007:32843/3f55c3a546d64f248e96b71033e50b5b/AppMng.svc' could not be activated. See the server's diagnostic trace logs for more information.

Reason

This is because there is not enough space to start the service. Note that the "SharePoint Search Host Service" consumes a lot of memory.

Solution

I went to services.msc and restarted "SharePoint Search Host Service". My workflow was published successfully. Ensure the service is started because if the SharePoint Search Host Controller windows service is stopped then the Search Components running on that server will not function until it's restarted.

Reference

http://www.information-worker.nl/2012/07/27/sp2013-memory-usage-noderunner-process/ 

Summary

Thus in this article you have seen how to resolve the issue "Error: The requested service, AppMng.svc could not be activated "in SharePoint 2013.