Orchard cms: Error loading extension

Tags: Orchard cms, module loading problem, Error loading extension

When a module is not loading, take a look in your log file and if there's a line which looks something like "2012-04-04 19:17:19,745 [7] Orchard.Environment.Extensions.ExtensionManager - Error loading extension......."
try the following solution:

  1. Add to AssemblyInfo.cs of the not loading module:
    [assembly: SecurityRules(SecurityRuleSet.Level2)]
  2. reset iis/website and it wil show up.