cannot activate feature

Topics: Bugs
Sep 10, 2013 at 8:36 PM
Hi,

I'm using SP2010.
I installed your solution, and it didn't deployed itself.
So I went to the administration panel and deployed it.
I went to my website to activate features. The site Feature activate but the other give me an error.

I looked for the correlation id and found those :
Area     : SharePoint Foundation
Category : Feature Infrastructure
Level    : High
EventID  : 88jm
Message  : Feature receiver assembly 'SharepointMessenger, Version=1.0.0.0, Culture=neutral, PublicKeyToken=e72dd2476be6c1c2', class 'SharepointMessenger.Features.SharepointMessengerList.SharepointMessengerListEventReceiver', method 'FeatureActivated' for feature 'b433f0cd-f276-47c1-ba80-174a1e58be4d' threw an exception: System.NullReferenceException: Object reference not set to an instance of an object.
     at SharepointMessenger.Models.Config.CreateList(SPWeb web)
     at SharepointMessenger.Features.SharepointMessengerList.SharepointMessengerListEventReceiver.FeatureActivated(SPFeatureReceiverProperties properties)
     at Microsoft.SharePoint.SPFeature.DoActivationCallout(BooleanfActivate, Boolean fForce)
Area     : SharePoint Foundation
Category : General
Level    : High
EventID  : 72by
Message  : Feature Activation: Threw an exception, attempting to roll back.  Feature 'SharepointMessenger_SharepointMessengerList' (ID: 'b433f0cd-f276-47c1-ba80-174a1e58be4d').  Exception: System.NullReferenceException: Object reference not set to an instance of an object.
     at SharepointMessenger.Models.Config.CreateList(SPWeb web)
     at SharepointMessenger.Features.SharepointMessengerList.SharepointMessengerListEventReceiver.FeatureActivated(SPFeatureReceiverProperties properties)
     at Microsoft.SharePoint.SPFeature.DoActivationCallout(Boolean fActivate, Boolean fForce)
     at Microsoft.SharePoint.SPFeature.Activate(SPSite siteParent, SPWeb webParent, SPFeaturePropertyCollection props, Boolean fForce)
Area     : SharePoint Foundation
Category : Runtime
Level    : Unexpected
EventID  : tkau
Message  : System.NullReferenceException: Object reference not set to an instance of an object.
    at SharepointMessenger.Models.Config.CreateList(SPWeb web)
     at SharepointMessenger.Features.SharepointMessengerList.SharepointMessengerListEventReceiver.FeatureActivated(SPFeatureReceiverProperties properties)
     at Microsoft.SharePoint.SPFeature.DoActivationCallout(Boolean fActivate, Boolean fForce)
     at Microsoft.SharePoint.SPFeature.Activate(SPSite siteParent, SPWeb webParent, SPFeaturePropertyCollection props, Boolean fForce)
     at Microsoft.SharePoint.SPFeatureCollection.AddInternal(SPFeatureDefinition featdef, Version version, SPFeaturePropertyCollection properties, Boolean force, Boolean fMarkOnly)
     at Microsoft.SharePoint.SPFeatureCol
           lection.AddInternalWithName(Guid featureId, String featureName, Vers
           ion version, SPFeaturePropertyCollection properties, Boolean force,
           Boolean fMarkOnly, SPFeatureDefinitionScope featdefScope)
     at Microsoft.SharePoint.SPFeatureCollection.Add(Guid featureId, Boolean force, SPFeatureDefinitionScope featdefScope)
     at Microsoft.SharePoint.WebControls.FeatureActivator.ActivateFeature(Guid featid, SPFeatureDefinitionScope featdefScope)
     at Microsoft.SharePoint.WebControls.FeatureActivatorItem.BtnActivateFeature_Click(Object objSender, EventArgs evtargs)
     at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
     at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
     at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Area     : SharePoint Foundation
Category : General
Level    : Unexpected
EventID  : 90hv
Message  : Detected use of SPRequest for previously closed SPWeb object.  Please close SPWeb objects when you are done with all objects obtained from them, but not before.  Stack trace:
    at Microsoft.SharePoint.SPWeb.get_AlternateUILcids()
     at Microsoft.SharePoint.Utilities.ThemingLocations.AddWebLanguagesToCollection(SPWeb web, HashSet`1 langCollection)
     at Microsoft.SharePoint.Utilities.ThemingLocations.GetFilteredLanguagesForWeb(SPWeb web, Boolean bAllLangsInSPSite)
     at Microsoft.SharePoint.Utilities.ThemingLocations.GetThemableStylesFolders(SPWeb web, Boolean includeFileSystem, Boolean bAllLangsInSPSite)
     at Microsoft.SharePoint.WebControls.CssRegistrationRecord.UpdateThemableReferences(SPWeb web, IEnumerable`1 references)
     at Microsoft.SharePoint.WebControls.CssLink.Render(HtmlTextWriter output)
     at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriterwriter, ICollection children)
     at System.Web.UI.HtmlControls.HtmlHead.RenderChildren(HtmlTextWriter writer)
     at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)
     at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer,ICollection children)
     at System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer)
     at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
     at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)
     at System.Web.UI.Page.Render(HtmlTextWriter writer)
     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
     at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
     at System.Web.UI.Page.ProcessRequest()
     at System.Web.UI.Page.ProcessRequest(HttpContext context)
     at ASP._layouts_error_aspx.ProcessRequest(HttpContext context)
     at System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm,Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride)
     at System.Web.HttpServerUtility.Execute(String path, TextWriter writer, Boolean preserveForm)
     at System.Web.HttpServerUtility.Transfer(String path, Boolean preserveForm)
     at System.Web.HttpServerUtility.Transfer(String path)
     at Microsoft.SharePoint.Utilities.SPUtility.TransferToErrorPage(String message, String linkText, String linkUrl)
     at Microsoft.SharePoint.ApplicationRuntime.SPRequestModule.ErrorHandler(HttpApplication app, Boolean errorIsOnErrorPage)
     at Microsoft.SharePoint.ApplicationRuntime.SPRequestModule.ErrorAppHandler(Object oSender, EventArgs ea)
     at System.EventHandler.Invoke(Object sender, EventArgs e)
     at System.Web.HttpApplication.RaiseOnError()
     at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)
     at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)
     at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
     at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
     at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
     at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
     at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
Coordinator
Sep 11, 2013 at 8:41 PM
What is the language of the installation? Also did the chat messages list get created?
Nov 20, 2013 at 8:57 AM
Hi Steve,

I have the same problem. I'm using Sharepoint 2010 with Hebrew Language pack. Chat messages list created.