Try our conversational search powered by Generative AI!

Search in admin/edit mode

Vote:
 

Hello,

Anybody have any resources on how to configure Episerver shell search.

The search in edit/admin mode doesn't work

Inserting "http://..../cmsui/shell/search" in the browser gives the following error message.

[ArgumentException: Culture name 'nn' is not supported.

Here nn is "nynorsk" that is another language in norway.

In advance thank you for your help!

Kind regards,

Jon Haakon

#45239
Nov 03, 2010 11:23
Vote:
 

I have assumed you have the culture installed on your own machine and configured as an enabled language in EPiServer admin mode?

If you need to investigate further then the view can be found here:

C:\Program Files\EPiServer\Framework\6.0.318.113\Application\UI\Views\Search\Index.aspx

and the related controller can be reflected out of:

C:\Program Files\EPiServer\Framework\6.0.318.113\bin\EPiServer.Shell.UI.dll (EPiServer.Shell.UI.Controllers.SearchController)

 

#45241
Nov 03, 2010 11:55
Vote:
 

I just checked admin mode and couldn't seem to find the "nn" culture you are referring to. Therefore you might need to register it as a custome culture. The following post should help with this:

http://world.episerver.com/Blogs/Ben-Morris/Dates/2009/10/Adding-new-languages-to-EPiServer-5/

#45242
Nov 03, 2010 11:58
Vote:
 

Thank you for replying! :) 

nn (nynorsk) is a language that's been added to the site and works fine. However if I'm gone use the search "button" on the top right corner in edit/admin modus, the textfield will not appear so I can preform a search.
I tried to investigate the problem by adding the path to the to the search functionality by adding "/cmsui/shell" where "cmsui" is the area for admin/edit mode. After trying to open this page I got the error above.

 

Perhaps the error in showing the searchfield and the error that appeard while trying to go to the searchpage directly are two different errors. What I want is to make the searchfield available.

 

I've previously had error saying "jquery is not defined" but I think this was a browser issue with javascript not enabled or something.

 

I guess you mean:

 

C:\Program Files\EPiServer\Framework\6.0.318.113\Application\UI\Views\Search\Index.ascx

 

not

 

C:\Program Files\EPiServer\Framework\6.0.318.113\Application\UI\Views\Search\Index.aspx

 

I tried to investgate it but couldn't find anything. I also tried to open settings.aspx but couldn't open it in the browser.

Jon Haakon

#45250
Edited, Nov 03, 2010 13:28
Vote:
 

Jon, yes I did mean .ascx ;)! 

#45251
Nov 03, 2010 13:51
Vote:
 

I believe you should use "nn-NO" as culture code for Nynorsk as "nn" isn't a valid culture, hence the ArgumentException.

My guess to what's happening is that the language setting in your profile in CMS is set to "nn" and parsed as a CultureInfo early in the request to the search dialog.
When parsed by the CMS everything works, since it uses the lang files as base for supported cultures. The search function, being a part of Shell and not having access to CMS functionality, must figure out the CultureInfo from the current user profile by other means (i.e. Create a CultureInfo from the CMS language setting).

But without a stack trace I can only guess what's going on.  

#45268
Nov 03, 2010 17:01
Vote:
 

Hi agin,

I still haven't figured out this problem.

It seems like the problem only exists for the administrator user.

If I change the default language on administrator from "system language" to "nb-NO" or "nn-NO",

search functionality and "Start" starts working. So the problem is related to system language.

Another thing that is strange is that the default language for municipal is "bokmaal" "nb-NO" - not "nn-NO".

If I change the path on another text, an error message appears with the correct language code.

However I found an error on the activities in edit mode. The page is configured with workflow, and the user is assigned a task. Under "My assigned tasks" there is an item with the following error:

Mine tildelte oppgaver

Ny [Missing text /workflows/approval/approvaltask/subject for nn] nytest

    

It seems to be the same problem. If I can fix this problem the other problem can be fixed as well.

I have gone throw the settings many times. The user (administrator) is changed to "nb-no" as default language.

Web.config is configured as follows:

 

<globalization culture="nb-no" uiCulture="no" requestEncoding="utf-8" responseEncoding="utf-8" resourceProviderFactoryType="EPiServer.Resources.XmlResourceProviderFactory, EPiServer" />
    

 

"EpiServerFramework.config" is configured with:

 

    <siteHosts siteId="hol">
<clear />
<add name="standard.hallingdal.kommune.no" language="nb-no"/>
<add name="standard.hol.kommune.no" language="nb-no" />
</siteHosts>

#46185
Edited, Dec 01, 2010 12:59
Vote:
 

-------------------------- STACK TRACE -------------------------


System.ArgumentException: Culture name 'nn' is not supported.
Parameter name: name
   at System.Globalization.CultureTableRecord..ctor(String cultureName, Boolean useUserOverride)
   at System.Globalization.CultureTableRecord.GetCultureTableRecord(String name, Boolean useUserOverride)
   at System.Globalization.CultureInfo..ctor(String name, Boolean useUserOverride)
   at EPiServer.Shell.Web.Mvc.ModuleMvcHandler.SetCulture(HttpContextBase httpContext)
   at EPiServer.Shell.Web.Mvc.ModuleMvcHandler.ProcessRequest(HttpContextBase httpContext)
   at System.Web.Mvc.MvcHandler.ProcessRequest(HttpContext httpContext)
   at System.Web.Mvc.MvcHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext httpContext)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
2010-12-01 10:36:19,695 INFO [9] EPiServer.UI.Util.PixelImg.SendLogMessage - Page|/_LM_W3SVC_1338431719_root/Root/Hol-kommune|55|administrator|geevr045vytksc55qcl1yair|http://standard.hol.kommune.no/cmsui/CMS/Edit/EditPanel.aspx?||
2010-12-01 10:39:08,868 INFO [9] EPiServer.UI.Util.PixelImg.SendLogMessage - Page|/_LM_W3SVC_1338431719_root/Root/Hol-kommune|55|administrator|geevr045vytksc55qcl1yair|http://standard.hol.kommune.no/cmsui/CMS/Edit/EditPanel.aspx?||
2010-12-01 10:41:05,846 INFO [5] EPiServer.UI.Util.PixelImg.SendLogMessage - Page|/_LM_W3SVC_316477414_root/Root/Nes-kommune/Hva-skjer/Nes-kino---Grusomme-meg|17163|Henning|szvjbd55waajoi450xwmcuyh|http://standard.nes-bu.kommune.no/cmsui/CMS/edit/EditPanel.aspx?parent=16928&type=27&mod...||
2010-12-01 10:41:25,254 INFO [9] EPiServer.UI.Util.PixelImg.SendLogMessage - Page|/_LM_W3SVC_1338431719_root/Root/Hol-kommune|55|arnetest|geevr045vytksc55qcl1yair|http://standard.hol.kommune.no/cmsui/CMS/Edit/EditPanel.aspx?||
2010-12-01 10:41:28,709 INFO [5] EPiServer.UI.Util.PixelImg.SendLogMessage - Page|/_LM_W3SVC_316477414_root/Root/Nes-kommune|113|Henning|szvjbd55waajoi450xwmcuyh|http://standard.nes-bu.kommune.no/cmsui/CMS/edit/EditPanel.aspx?id=113&amp;latesturl=htt...||
2010-12-01 10:44:12,064 INFO [1] EPiServer.UI.Util.PixelImg.SendLogMessage - Page|/_LM_W3SVC_1338431719_root/Root/Hol-kommune|55|administrator|geevr045vytksc55qcl1yair|http://standard.hol.kommune.no/cmsui/CMS/Edit/EditPanel.aspx?||
2010-12-01 10:44:14,237 ERROR [1] EPiServer.Global.Global_Error - 1.2.5 Unhandled exception in ASP.NET
System.ArgumentException: Culture name 'nn' is not supported.
Parameter name: name
   at System.Globalization.CultureTableRecord..ctor(String cultureName, Boolean useUserOverride)
   at System.Globalization.CultureTableRecord.GetCultureTableRecord(String name, Boolean useUserOverride)
   at System.Globalization.CultureInfo..ctor(String name, Boolean useUserOverride)
   at EPiServer.Shell.Web.Mvc.ModuleMvcHandler.SetCulture(HttpContextBase httpContext)
   at EPiServer.Shell.Web.Mvc.ModuleMvcHandler.ProcessRequest(HttpContextBase httpContext)
   at System.Web.Mvc.MvcHandler.ProcessRequest(HttpContext httpContext)
   at System.Web.Mvc.MvcHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext httpContext)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
2010-12-01 10:44:27,135 INFO [1] EPiServer.UI.Util.PixelImg.SendLogMessage - Page|/_LM_W3SVC_1338431719_root/Root/Hol-kommune|55|administrator|geevr045vytksc55qcl1yair|http://standard.hol.kommune.no/cmsui/CMS/Edit/EditPanel.aspx?||
2010-12-01 10:44:29,909 ERROR [8] EPiServer.Global.Global_Error - 1.2.5 Unhandled exception in ASP.NET
System.ArgumentException: Culture name 'nn' is not supported.
Parameter name: name
   at System.Globalization.CultureTableRecord..ctor(String cultureName, Boolean useUserOverride)
   at System.Globalization.CultureTableRecord.GetCultureTableRecord(String name, Boolean useUserOverride)
   at System.Globalization.CultureInfo..ctor(String name, Boolean useUserOverride)
   at EPiServer.Shell.Web.Mvc.ModuleMvcHandler.SetCulture(HttpContextBase httpContext)
   at EPiServer.Shell.Web.Mvc.ModuleMvcHandler.ProcessRequest(HttpContextBase httpContext)
   at System.Web.Mvc.MvcHandler.ProcessRequest(HttpContext httpContext)
   at System.Web.Mvc.MvcHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext httpContext)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
2010-12-01 10:44:29,940 ERROR [8] EPiServer.Global.Global_Error - 1.2.5 Unhandled exception in ASP.NET
System.ArgumentException: Culture name 'nn' is not supported.
Parameter name: name
   at System.Globalization.CultureTableRecord..ctor(String cultureName, Boolean useUserOverride)
   at System.Globalization.CultureTableRecord.GetCultureTableRecord(String name, Boolean useUserOverride)
   at System.Globalization.CultureInfo..ctor(String name, Boolean useUserOverride)
   at EPiServer.Shell.Web.Mvc.ModuleMvcHandler.SetCulture(HttpContextBase httpContext)
   at EPiServer.Shell.Web.Mvc.ModuleMvcHandler.ProcessRequest(HttpContextBase httpContext)
   at System.Web.Mvc.MvcHandler.ProcessRequest(HttpContext httpContext)
   at System.Web.Mvc.MvcHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext httpContext)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
2010-12-01 10:44:29,960 ERROR [8] EPiServer.Global.Global_Error - 1.2.5 Unhandled exception in ASP.NET
System.ArgumentException: Culture name 'nn' is not supported.
Parameter name: name
   at System.Globalization.CultureTableRecord..ctor(String cultureName, Boolean useUserOverride)
   at System.Globalization.CultureTableRecord.GetCultureTableRecord(String name, Boolean useUserOverride)
   at System.Globalization.CultureInfo..ctor(String name, Boolean useUserOverride)
   at EPiServer.Shell.Web.Mvc.ModuleMvcHandler.SetCulture(HttpContextBase httpContext)
   at EPiServer.Shell.Web.Mvc.ModuleMvcHandler.ProcessRequest(HttpContextBase httpContext)
   at System.Web.Mvc.MvcHandler.ProcessRequest(HttpContext httpContext)
   at System.Web.Mvc.MvcHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext httpContext)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
2010-12-01 10:44:55,727 INFO [8] EPiServer.UI.Util.PixelImg.SendLogMessage - Page|/_LM_W3SVC_1338431719_root/Root/Hol-kommune|55|administrator|geevr045vytksc55qcl1yair|http://standard.hol.kommune.no/cmsui/CMS/Edit/EditPanel.aspx?||

#46186
Dec 01, 2010 13:08
Vote:
 

I want to emphesize that I have configured the langeuage on all posible places.

How and where "nn" comes from is a mystery.

Mayby a language file is not configured for "nn-NO"?

Which language files is used by Episerver??

 

Kind regards,

 

Jon Haakon

#46187
Dec 01, 2010 13:14
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* 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.