Multi language correction

Topics: Bugs
Jul 26, 2013 at 12:24 PM
Hello,
if you want your Web Site feature to work correctly with other SharePoint than English,
you should correct this line in CreateList Method for Models\Config.cs :
//list.ContentTypes["Item"].Delete();
and replace with this :
SPContentTypeId ListitemContentTypeId = list.ContentTypes[web.ContentTypes[SPBuiltInContentTypeId.Item].Name].Id;
list.ContentTypes.Delete(ListitemContentTypeId);
With that correction works great :)
Regards,
Coordinator
Jul 26, 2013 at 12:45 PM
Ah, beceause of the name of the content type "Item" is that correct? I will go through the code and update. Thanks a lot.
Feb 13, 2014 at 7:38 AM
Edited Feb 13, 2014 at 8:00 AM
where i can find
Models\Config.cs in which folder?
i installed sharepoint messenger and all is worked ok. but now i have a problem. in logs i receive messages
02/12/2014 21:37:56.41 w3wp.exe (0x3DE0) 0x442C SharePoint Foundation Logging Correlation Data xmnv Medium Name=Request (POST:http://192.168.0.33:49098/_layouts/ManageFeatures.aspx) d5f9c11e-f0a9-41e4-8b9c-5ef56aa0a849
02/12/2014 21:37:56.44 w3wp.exe (0x3DE0) 0x3444 SharePoint Foundation Logging Correlation Data xmnv Medium Name=Request (POST:http://192.168.0.33:49098/_layouts/ManageFeatures.aspx) cedf7ffc-5a5b-49c6-b45d-413bb397d219
02/12/2014 21:37:56.55 w3wp.exe (0x3DE0) 0x3444 SharePoint Foundation Logging Correlation Data xmnv Medium Site=/ cedf7ffc-5a5b-49c6-b45d-413bb397d219
02/12/2014 21:37:57.13 w3wp.exe (0x3DE0) 0x3444 SharePoint Foundation Runtime tkau Unexpected 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, SPFeatureActivateFlags activateFlags, Boolean fForce) at Microsoft.SharePoint.SPFeatureCollection.AddInternal(SPFeatureDefinition featdef, Version version, SPFeaturePropertyCollection properties, SPFeatureActivateFlags activateFlags, Boolean force, Boolean fMarkOnly) at Microsoft... cedf7ffc-5a5b-49c6-b45d-413bb397d219
02/12/2014 21:37:57.13* w3wp.exe (0x3DE0) 0x3444 SharePoint Foundation Runtime tkau Unexpected ....SharePoint.SPFeatureCollection.AddInternalWithName(Guid featureId, String featureName, Version version, SPFeaturePropertyCollection properties, SPFeatureActivateFlags activateFlags, 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.RaiseP... cedf7ffc-5a5b-49c6-b45d-413bb397d219
02/12/2014 21:37:57.13* w3wp.exe (0x3DE0) 0x3444 SharePoint Foundation Runtime tkau Unexpected ...ostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) cedf7ffc-5a5b-49c6-b45d-413bb397d219
02/12/2014 21:37:57.13 w3wp.exe (0x3DE0) 0x3444 SharePoint Foundation General 90hv Unexpected 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, HashSet1 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, IEnumerable1 references) at Microsoft.SharePoint.WebControls.CssLink.Render(HtmlT... cedf7ffc-5a5b-49c6-b45d-413bb397d219
02/12/2014 21:37:57.13* w3wp.exe (0x3DE0) 0x3444 SharePoint Foundation General 90hv Unexpected ...extWriter output) at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, 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, Boo... cedf7ffc-5a5b-49c6-b45d-413bb397d219
02/12/2014 21:37:57.13* w3wp.exe (0x3DE0) 0x3444 SharePoint Foundation General 90hv Unexpected ...lean 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 pat... cedf7ffc-5a5b-49c6-b45d-413bb397d219
02/12/2014 21:37:57.13* w3wp.exe (0x3DE0) 0x3444 SharePoint Foundation General 90hv Unexpected ...h) 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.PipelineRuntim... cedf7ffc-5a5b-49c6-b45d-413bb397d219
02/12/2014 21:37:57.13* w3wp.exe (0x3DE0) 0x3444 SharePoint Foundation General 90hv Unexpected ...e.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) cedf7ffc-5a5b-49c6-b45d-413bb397d219
Coordinator
Feb 13, 2014 at 3:26 PM

The file is in the source code. SharepointMessenger/Models/Config.cs.

Steve

Feb 14, 2014 at 7:46 AM
i solved this problem. i disabled site feature then web feature. when i enabled site feature and i try Sharepoint Messenger List Setup feature i receive error but sharepoint messenger works ok. also problem is that sharepoint messenger charge wss_logging databse quickly. why?