November Happy Hour will be moved to Thursday December 5th.

Errors after upgrade to 9.5

Vote:
 

Hello

Im having problems updating EPiServer to version 9.5. After the upgrade I get a error when running the site.
The error I get is "Default Membership Provider must be specified.", but I use federated security so I have no membership provider.

I can reproduce the error in the Alloy project using the configuration/code from http://world.episerver.com/documentation/Items/Developers-Guide/EPiServer-CMS/9/Security/federated-security/. It works in version 9.2 of the Alloy project, but not after upgrade to 9.5.

The error seems to be related to EPiServer.Cms.Shell.UI.Notifications.ProjectMessageNotifier.
The error I get is:

Server Error in '/' Application.

Default Membership Provider must be specified.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.Configuration.Provider.ProviderException: Default Membership Provider must be specified.

Source Error: 


[No relevant source lines]

Source File: c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\472ed386\5c9cec1d\App_global.asax.0.cs    Line: 0 

Stack Trace: 


[ProviderException: Default Membership Provider must be specified.]
   System.Web.Security.Membership.InitializeDefaultProvider(Boolean initializeDefaultProvider, MembershipSection settings) +10008463
   System.Web.Security.Membership.Initialize() +450
   System.Web.Security.Membership.get_Provider() +9
   EPiServer.Initialization.<>c.b__0_1(IServiceLocator s) +20
   EPiServer.ServiceLocation.Internal.<>c__DisplayClass6_0.b__1(IServiceLocator s) +10
   lambda_method(Closure , IBuildSession , IContext ) +181

[StructureMapBuildException: Failure while building 'Lambda: Invoke(value(EPiServer.ServiceLocation.Internal.StructureMapConfiguredType+<>c__DisplayClass6_0).p, value(EPiServer.ServiceLocation.Internal.StructureMapConfiguredType)._serviceLocator)', check the inner exception for details
1.) Lambda: Invoke(value(EPiServer.ServiceLocation.Internal.StructureMapConfiguredType+<>c__DisplayClass6_0).p, value(EPiServer.ServiceLocation.Internal.StructureMapConfiguredType)._serviceLocator)
2.) Instance of EPiServer.Notification.IQueryableNotificationUsers (System.Object)
3.) new NotificationUserRepositoryImpl(*Default of IQueryableNotificationUsers*, Enumerable of EPiServer.Notification.INotificationProvider with all registered instances, Enumerable of EPiServer.Notification.IQueryablePreference with all registered instances)
4.) EPiServer.Notification.NotificationUserRepositoryImpl
5.) Instance of EPiServer.Notification.INotificationUserRepository (EPiServer.Notification.NotificationUserRepositoryImpl)
6.) new DefaultNotifier(*Default of INotificationUserRepository*, *Default of INotificationRepository*, Enumerable of EPiServer.Notification.INotificationFormatter with all registered instances, *Default of QueryableNotificationUserService*)
7.) EPiServer.Notification.DefaultNotifier
8.) Instance of EPiServer.Notification.INotifier (EPiServer.Notification.DefaultNotifier)
9.) new ProjectMessageNotifier(*Default of INotifier*, *Default of ProjectActivityFeed*, *Default of ActivityCommentRepository*, *Default of IObjectSerializerFactory*, *Default of MentionParser*, *Default of ProjectService*, *Default of ISubscriptionService*)
10.) EPiServer.Cms.Shell.UI.Notifications.ProjectMessageNotifier
11.) Instance of EPiServer.Cms.Shell.UI.Notifications.ProjectMessageNotifier
12.) Container.GetInstance(EPiServer.Cms.Shell.UI.Notifications.ProjectMessageNotifier)
]
   lambda_method(Closure , IBuildSession , IContext ) +856
   StructureMap.Building.BuildPlan.Build(IBuildSession session, IContext context) in c:\BuildAgent\work\a395dbde6b793293\src\StructureMap\Building\BuildPlan.cs:151
   StructureMap.BuildSession.BuildNewInSession(Type pluginType, Instance instance) in c:\BuildAgent\work\a395dbde6b793293\src\StructureMap\BuildSession.cs:114
   StructureMap.BuildSession.BuildNewInOriginalContext(Type pluginType, Instance instance) in c:\BuildAgent\work\a395dbde6b793293\src\StructureMap\BuildSession.cs:119
   StructureMap.Pipeline.LifecycleObjectCache.buildWithSession(Type pluginType, Instance instance, IBuildSession session) in c:\BuildAgent\work\a395dbde6b793293\src\StructureMap\Pipeline\LifecycleObjectCache.cs:92
   StructureMap.Pipeline.LifecycleObjectCache.Get(Type pluginType, Instance instance, IBuildSession session) in c:\BuildAgent\work\a395dbde6b793293\src\StructureMap\Pipeline\LifecycleObjectCache.cs:71
   StructureMap.BuildSession.ResolveFromLifecycle(Type pluginType, Instance instance) in c:\BuildAgent\work\a395dbde6b793293\src\StructureMap\BuildSession.cs:103
   StructureMap.SessionCache.GetObject(Type pluginType, Instance instance, ILifecycle lifecycle) in c:\BuildAgent\work\a395dbde6b793293\src\StructureMap\SessionCache.cs:93
   StructureMap.SessionCache.GetDefault(Type pluginType, IPipelineGraph pipelineGraph) in c:\BuildAgent\work\a395dbde6b793293\src\StructureMap\SessionCache.cs:68
   StructureMap.Container.GetInstance(Type pluginType) in c:\BuildAgent\work\a395dbde6b793293\src\StructureMap\Container.cs:337
   EPiServer.ServiceLocation.StructureMapServiceLocator.DoGetInstance(Type serviceType, String key) +40
   EPiServer.ServiceLocation.ServiceLocatorImplBase.GetInstance(Type serviceType, String key) +42

[ActivationException: Activation error occurred while trying to get instance of type ProjectMessageNotifier, key ""]
   EPiServer.ServiceLocation.ServiceLocatorImplBase.GetInstance(Type serviceType, String key) +101
   EPiServer.ServiceLocation.ServiceLocatorImplBase.GetInstance() +60
   EPiServer.Cms.Shell.InitializableModule.Initialize(InitializationEngine context) +175
   EPiServer.Framework.Initialization.<>c__DisplayClass3_0.b__0() +19
   EPiServer.Framework.Initialization.ModuleNode.Execute(Action a, String key) +52
   EPiServer.Framework.Initialization.ModuleNode.Initialize(InitializationEngine context) +80
   EPiServer.Framework.Initialization.InitializationEngine.InitializeModules() +173

[InitializationException: Initialize action failed for Initialize on class EPiServer.Cms.Shell.InitializableModule, EPiServer.Cms.Shell.UI, Version=9.3.4.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7]
   EPiServer.Framework.Initialization.InitializationEngine.InitializeModules() +439
   EPiServer.Framework.Initialization.InitializationEngine.ExecuteTransition(Boolean continueTransitions) +114
   EPiServer.Framework.Initialization.InitializationEngine.Initialize() +32
   EPiServer.Framework.Initialization.<>c.b__7_0(InitializationEngine e) +9
   EPiServer.Framework.Initialization.InitializationModule.EngineExecute(HostType hostType, Action`1 engineAction) +365
   EPiServer.Framework.Initialization.InitializationModule.FrameworkInitialization(HostType hostType) +170
   EPiServer.Global..ctor() +76
   EPiServerSite2.EPiServerApplication..ctor() +42
   ASP.global_asax..ctor() in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\472ed386\5c9cec1d\App_global.asax.0.cs:0

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
   System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +119
   System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +232
   System.Activator.CreateInstance(Type type, Boolean nonPublic) +83
   System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) +1117
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +124
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture) +20
   System.Web.HttpRuntime.CreateNonPublicInstance(Type type, Object[] args) +60
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +263
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +296

[HttpException (0x80004005): Exception has been thrown by the target of an invocation.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9923088
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +90
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +261

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.114.0
#142613
Dec 16, 2015 9:39
Vote:
 

http://world.episerver.com/forum/developer-forum/-EPiServer-75-CMS/Thread-Container/2015/12/projectmessagenotifier-error-in-cms-9.5/

/K

#142704
Dec 18, 2015 16:07
Vote:
 

http://world.episerver.com/support/Bug-list/bug/CMS-2428

Version 9.2 is the latest version where Federated Security works. I hope the solution to the bug listed above will solve it. :)

#142729
Edited, Dec 21, 2015 13:04
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.