1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Error happening when ProviderName is set to Sitefinity by ListSelector webeditor

Error happening when ProviderName is set to Sitefinity by ListSelector webeditor

3 posts, 0 answered
  1. Nigel
    Nigel avatar
    49 posts
    Registered:
    07 Jul 2008
    27 Nov 2009
    Link to this post
    Hi, I have developed a toolbox control that inherits from GenericContent and implements IListDisplay.

    This is to allow me to define a template in the rich text editor, and point at lists that will be displayed in this control.

    Everything is working great, except when I select lists it changes the ProviderName to 'Sitefinity', which should not really be a problem, given that the information is comming from the Sitefinity provider. However when I click I am done I get the following exception:

    Provider with name 'Sitefinity' has not been set   
    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.ConfigurationErrorsException: Provider with name 'Sitefinity' has not been set  
     
    Source Error:   
     
     
    [No relevant source lines]  
       
     
    Source File: c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\malwright\84a63fd4\6514e467\App_Web_mtmhgshx.4.cs    Line: 0   
     
    Stack Trace:   
     
     
    [ConfigurationErrorsException: Provider with name 'Sitefinity' has not been set]  
       Telerik.ManagerBase`1.SetProvider(String providerName) +408  
       Telerik.ManagerBase`1..ctor(String providerName) +86  
       Telerik.Cms.Engine.ContentManager..ctor(String providerName) +45  
       Telerik.Cms.Engine.WebControls.Design.GenericContentDesigner.get_Manager() +102  
       Telerik.Cms.Engine.WebControls.Design.GenericContentDesigner.InitializeControls(Control viewContainer) +1943  
       Telerik.Cms.Web.UI.ViewModeControl`1.CreateChildControls() +144  
       System.Web.UI.Control.EnsureChildControls() +146  
       System.Web.UI.WebControls.CompositeControl.get_Controls() +20  
       System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +34  
       System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +395  
       System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +232  
       System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +395  
       System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +232  
       System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +395  
       System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +232  
       System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +395  
       System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +232  
       System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +395  
       System.Web.UI.Control.LoadChildViewStateByIndex(ArrayList childState) +232  
       System.Web.UI.Control.LoadViewStateRecursive(Object savedState) +395  
       System.Web.UI.Page.LoadAllState() +564  
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +11041352  
       System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +11041050  
       System.Web.UI.Page.ProcessRequest() +91  
       System.Web.UI.Page.ProcessRequest(HttpContext context) +240  
       ASP.sitefinity_admin_ctrlprops_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\malwright\84a63fd4\6514e467\App_Web_mtmhgshx.4.cs:0  
       System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +599  
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +171  
     
       
     

    Any ideas what is going wrong?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    27 Nov 2009
    Link to this post
    Hi Nigel,

    The default provider for GenericContent control is "Generic_Content", not Sitefinity and actually this is the problem. The error says that you do not have Sitefinity provider in your configuration. The ProviderName property gets or sets the name of the data provider that will be used to retrieve shared content. If the value is empty or null, the default data provider will be used. You can see that the error is actually thrown from Telerik.Cms.Engine.ContentManager. In your logic you have to make sure that the provider for Generic Content is not switched or just pass the value as a string, so that there alway will be the correct value.

    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Nigel
    Nigel avatar
    49 posts
    Registered:
    07 Jul 2008
    27 Nov 2009
    Link to this post
    Thanks for that reply, almost did that, but went onto something else today. Will override on monday with a static string :)
Register for webinar
3 posts, 0 answered