Fix: No document templates uploaded for list "$Resources:core,MasterPageGallery;" -- none found for list template "100".

Scenario:
In SharePoint 2010, trying to create a Publishing Site with Workflow fails with this message:




The error logged is a bit more descriptive but not really helping:
No document templates uploaded for list "$Resources:core,MasterPageGallery;" -- none found for list template "100".

Fix:
Activate the "SharePoint Server Publishing Infrastructure" feature at the site collection level.
If the feature is active, deactivate it and then activate it again.


Activate or deactivate timer job feature using PowerShell

Scenario:

  • You want to activate your newly deployed feature to install a timer job
  • You want to deactivate the feature and remove the job
  • You want to deploy an update to the existing timer job feature
Message:
The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Note:
I was able to Deactivate the feature from the SharePoint UI, as a farm admin, but the Activate still failed for me.

Solution:
Use the following PowerShell commands:

 Disable-SPFeature -Identity "TimerJobName" -url http://site:port  
or
 Enable-SPFeature -Identity "TimerJobName" -url http://site:port  

To determine your feature's name you can use (which can be tricky sometimes) use this command:
 Get-SPFeature | where-object {$_.DisplayName -match "MyPattern"} | Select DisplayName