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.
Hi Kristoffer
It looks like you miss some services registration. Have a look of Startup file used in Foundation project
public void ConfigureServices(IServiceCollection services)
{
services.AddCmsAspNetIdentity<SiteUser>();
services.AddMvc(o => o.Conventions.Add(new FeatureConvention()))
.AddRazorOptions(ro => ro.ViewLocationExpanders.Add(new FeatureViewLocationExpander()));
if (_webHostingEnvironment.IsDevelopment())
{
services.Configure<ClientResourceOptions>(uiOptions => uiOptions.Debug = true);
}
services.AddCms();
services.AddDisplay();
services.AddTinyMce();
services.AddFind();
services.ConfigureApplicationCookie(options =>
{
options.LoginPath = "/util/Login";
options.ExpireTimeSpan = new TimeSpan(0, 20, 0);
options.SlidingExpiration = true;
});
services.TryAddEnumerable(Microsoft.Extensions.DependencyInjection.ServiceDescriptor.Singleton(typeof(IFirstRequestInitializer), typeof(ContentInstaller)));
services.AddDetection();
}
https://raw.githubusercontent.com/episerver/foundation-mvc-cms/net5/src/Foundation/Startup.cs
Thanks Vincent!
I actually had this Startup.cs as my guidance:
https://github.com/episerver/Foundation/blob/net5/src/Foundation/Startup.cs
And that is for Commerce as well so the AddCms() I think was the key here.
/Kristoffer
Hi!
I'm trying to upgrade a site from CMS 11 to 12 and the site compiles but wont startup.
gives me:
I guess it could be the Core projects setup as well but I cannot figure this one out.
Thanks!
/Kristoffer