I was working on hosted app when I encountered below error:
The Subscription Settings service and corresponding application and proxy needs to be running in order to make changes to these settings.
Copy and paste below script in SharePoint Management Shell.
$acc = Get-SPManagedAccount <AccountName>
$appPool = New-SPServiceApplicationPool -Name "<Application pool name>" -Account $acc
$app = New-SPSubscriptionSettingsServiceApplication –ApplicationPool $appPool –Name "Subscription Settings Service Application" –DatabaseName <Database name>
$proxy = New-SPSubscriptionSettingsServiceApplicationProxy –ServiceApplication $app
Replace your <AccountName> with managed account
Replace your <Application pool name> with Subscription Settings Service Apppool
Replace your <Database name> with SPMT_Settings_Service_DB
Recently I was working on sending mail using smtp server where I stuck on below error: IIS/SMTP - emails are stuck in mailroot/Queue ...
you will see this error when you try to add SharePoint Hosted app : Sorry, apps are turned off. If you know who runs the server, tell them...