I am upgrading a kentico instance from version 8.2 to 9 and in the global.asax.cs file I have this code private static void EnsureDynamicModules(object sender, EventArgs e)
{
// Ensures CMSModuleLoader module, which has IsDiscoverable set to false
ModuleEntryManager.EnsureModule@CMSModuleLoader@();
// Ensures other possible modules within app code assembly
ModuleEntryManager.EnsureAppCodeModules(typeof(CMSModuleLoader).Assembly);
var discovery = new ModuleDiscovery();
var assembly = typeof(CMSModuleLoader).Assembly;
foreach (var module in discovery.GetModules(assembly))
{
ModuleEntryManager.EnsureModule(module);
}
}
On the line @ModuleEntryManager.EnsureModule(module);@ I get a squiggy line with the comment belowNo overload for method EnsureModule takes one arguments
What am I doing wrong here?
↧