LanguageSwitcher GetPagesInfo trouble

Topics: Standard packages
May 5, 2011 at 4:05 PM
Edited May 5, 2011 at 4:09 PM


i have a trouble with LanguageSwitcher package - in package used GetPagesInfo method is not found.

May be somebody can comment this trouble?



<!-- p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px 'Courier New'} --> <!-- p.p1 {margin: 5.0px 0.0px 5.0px 0.0px; font: 12.0px 'Times New Roman'} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 10.0px 'Courier New'} -->

5/5/2011 5:47 PM 

System.InvalidOperationException: XSLT Function call markup for failed to parse ('The Function named 'Composite.Navigation.LanguageSwitcher.GetPagesInfo' is not known.').Please see server log for more details.

   at Composite.Plugins.Functions.FunctionProviders.XsltBasedFunctionProvider.RenderHelper.GetValidatedFunctionCalls(Guid xsltFunctionId)

   at Composite.Plugins.Functions.FunctionProviders.XsltBasedFunctionProvider.XsltBasedFunctionProvider.XsltXmlFunction.Execute(ParameterList parameters, FunctionContextContainer context)

   at Composite.Functions.Foundation.PluginFacades.FunctionWrapper.Execute(ParameterList parameters, FunctionContextContainer context)

   at Composite.Functions.FunctionRuntimeTreeNode.GetValue(FunctionContextContainer contextContainer)

PageRenderer | INNER


Error 5/5/2011 5:47 PM 

System.InvalidOperationException: Failed to get value for function 'Composite.Navigation.LanguageSwitcher' 

   at Composite.Functions.FunctionRuntimeTreeNode.GetValue(FunctionContextContainer contextContainer)

   at Composite.Core.WebClient.Renderings.Page.PageRenderer.<>c__DisplayClass19.<ExecuteEmbeddedFunctions>b__15(Int32 i)



Error 5/5/2011 5:47 PM 

XSLT Function call markup for failed to parse ('The Function named 'Composite.Navigation.LanguageSwitcher.GetPagesInfo' is not known.').The markup was <f:function xmlns:f="" name="Composite.Navigation.LanguageSwitcher.GetPagesInfo">

  <f:param xmlns:f="" name="mode">

    <f:function xmlns:f="" name="Composite.Utils.GetInputParameter">

      <f:param name="InputParameterName" value="Mode" />



  <f:param xmlns:f="" name="format">

    <f:function xmlns:f="" name="Composite.Utils.GetInputParameter">

      <f:param name="InputParameterName" value="Format" />



  <f:param xmlns:f="" name="includeQuery">

    <f:function xmlns:f="" name="Composite.Utils.GetInputParameter">

      <f:param name="InputParameterName" value="IncludeQuery" />




May 6, 2011 at 11:42 AM

Hi Alex

Please check whether file /App_Code/Composite/Navigation/LanguageSwitcher/Functions.cs exists.

Which version of C1 are you using?

May 6, 2011 at 12:25 PM


i tryied the same on the blank C1 installation - everything ok. I have this problem in demo version with omni only. I check'ed functions.cs - it's exists.

My version of Composite C1 2.1.1 (b2.1.4113.99)

I skipped this problem now. Thanks for response!

May 10, 2011 at 12:56 PM

This problem appears when you created C# function in C1 and than removed it's cs file.

Fix is simple - find which C# function missing cs file and delete it. - Functions => C# Functions
Proof of concept: