Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
Do you have module.config and a top level folder 1.0.0 in zipped addon?
I never tried auto discovery but have successfully added protected module options explicitly like this:
services.Configure<ProtectedModuleOptions>(o =>
{
var myModuleDetails = new ModuleDetails
{
Name = "MyModuleName",
};
o.Items.Add(myModuleDetails);
});
Plugin UI is developed in a separate MVC project and CMS 12 is in another project.
Please consider followings
services.Configure<ProtectedModuleOptions>(x => x.AutoDiscovery = EPiServer.Shell.Configuration.AutoDiscoveryLevel.Modules);
When we then start the project it is giving following error: error:
"Value cannot be null. (Parameter 'path')"
stacktrace:
at System.IO.Path.GetFullPath(String path)
at System.IO.DirectoryInfo..ctor(String path)
at EPiServer.Shell.Modules.ModuleFinder.GetModuleInDirectory(String routeBasePath, String moduleResourcePath, IEnumerable`1 configuredAssemblyNames, AutoDiscoveryLevel discoveryMode, String configuredName)
at EPiServer.Shell.Modules.ModuleFinder.GetModulesInSubdirectories(String rootPath, AutoDiscoveryLevel discoveryMode)
at EPiServer.Shell.Modules.ConfigModuleProvider.GetConfiguredModules(ModuleOptionsBase moduleInfo)
at EPiServer.Shell.Modules.ConfigModuleProvider.GetModules()
at EPiServer.Shell.ShellInitialization.<>c.<GetConfiguredModules>b__9_0(IModuleProvider p)
at System.Linq.Enumerable.SelectManySingleSelectorIterator`2.ToList()
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at EPiServer.Shell.Modules.ShellModule.MergeDuplicateModules(IEnumerable`1 modules)
at EPiServer.Shell.ShellInitialization.GetConfiguredModules(IServiceProvider locator)
at EPiServer.Shell.ShellInitialization.Initialize(InitializationEngine context)
at EPiServer.Framework.Initialization.Internal.ModuleNode.<>c__DisplayClass4_0.<Initialize>b__0()
at EPiServer.Framework.Initialization.Internal.ModuleNode.Execute(Action a, String key)
at EPiServer.Framework.Initialization.Internal.ModuleNode.Initialize(InitializationEngine context)
at EPiServer.Framework.Initialization.InitializationEngine.InitializeModules()
When we removed the auto discovery setting form startup class. It works to build the project
Does anyone have experienced this? Please point me in a correct direction