Problem with Composite.Forms.Render and Data Reference field types

Topics: Troubleshooting
Jul 22, 2011 at 9:31 PM

Trying to complete http://docs.composite.net/C1/Data/A-Guide-to-Creating-Datatypes.aspx/Using-Input-Forms-with-Datatypes but I am getting an error trying to view the published page. The error is:

Server Error in '/Website' Application.

Composite.Forms.Renderer does not support widget. Failed to load the configuration for IUiControlFactory 'AspNet.FormsRenderer->http://www.composite.net/ns/management/bindingforms/std.ui.controls.lib/1.0->DataReferenceTreeSelector'.

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: Composite.Forms.Renderer does not support widget. Failed to load the configuration for IUiControlFactory 'AspNet.FormsRenderer->http://www.composite.net/ns/management/bindingforms/std.ui.controls.lib/1.0->DataReferenceTreeSelector'.

Source Error:

Line 48: 			Reset.Visible = false;
Line 49: 
Line 50: 		FormsRenderer.InsertForm(this.Fields,parameters);
Line 51: 	}
Line 52: 


Source File: c:\Composite C1\Website\Frontend\Composite\Forms\Renderer\Controls\FormsRender.ascx.cs    Line: 50

Stack Trace:

[ConfigurationErrorsException: Composite.Forms.Renderer does not support widget. Failed to load the configuration for IUiControlFactory 'AspNet.FormsRenderer->http://www.composite.net/ns/management/bindingforms/std.ui.controls.lib/1.0->DataReferenceTreeSelector'.]
   Composite.Forms.Renderer.FormsRenderer.InsertForm(Control control, ParameterList parameters) +2096
   FormsRenderer_FormsRender.Page_Load(Object sender, EventArgs e) in c:\Composite C1\Website\Frontend\Composite\Forms\Renderer\Controls\FormsRender.ascx.cs:50
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +91
   System.Web.UI.Control.LoadRecursive() +74
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Control.LoadRecursive() +146
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +8387
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +253
   System.Web.UI.Page.ProcessRequest() +78
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
   System.Web.UI.Page.ProcessRequest(HttpContext context) +49
   ASP.renderers_page_aspx.ProcessRequest(HttpContext context) in c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\website\df3c86a1\dbe3e795\App_Web_cajx2xvj.0.cs:0
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +100
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75



Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.225              

 

If I remove the Avatar field that has a Field type of Data Reference everything works fine. Is this a bug or do I possibly not have something set up correctly? Thanks!

Composite C1 2.1.1 Build no. 2.1.4113.99 with Omnicorp website

Visual Web Developer 2010 Express

Logged in as admin

 

Kerry

Jul 23, 2011 at 1:24 PM

Anybody, any idea? Thanks!

Coordinator
Jul 24, 2011 at 6:56 AM

Hello,

This error says that Composite.Forms.Renderer does not support widget which is used for Avatar field. Try to select another widget for this field. Edit data type -> Fields -> locate Avatar field -> Advanced tab ->

Widget type -> choose another widget type (e.g Composite/Widgets/DataReference/CompositeDataTypeIImageFile/OptionalSelector) 

Probably, when this article was writing, by default Media File fields used supported widget by FormRenderer module, but now uses new ImageSelector( or MediaFileSelector) which are not supported.

Developer
Jul 25, 2011 at 8:06 AM
Inna wrote:

Hello,

This error says that Composite.Forms.Renderer does not support widget which is used for Avatar field. Try to select another widget for this field. Edit data type -> Fields -> locate Avatar field -> Advanced tab ->

Widget type -> choose another widget type (e.g Composite/Widgets/DataReference/CompositeDataTypeIImageFile/OptionalSelector) 

Probably, when this article was writing, by default Media File fields used supported widget by FormRenderer module, but now uses new ImageSelector( or MediaFileSelector) which are not supported.


Indeed, the default selectors for C1 Page, C1 Image, C1 Media File, C1 Media Folder are not currently supported in the Forms Renderer. So please change them as Inna suggests.

We have updated the documentation to reflect these peculiarities.

/Vitaly

Jul 25, 2011 at 2:56 PM

Thanks,

That does work now without error.

Kerry