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

Forums / Bugs & Issues / 37 SP3 - A field or property with the name 'Author' was not found on the selected data source

37 SP3 - A field or property with the name 'Author' was not found on the selected data source

6 posts, 0 answered
  1. Mark
    Mark avatar
    86 posts
    Registered:
    08 Feb 2010
    12 May 2010
    Link to this post
    Hi

    I'm running into an issue when in a page/generic content/ clicking on select shared content
    Any Ideas?

     

    Server Error in '/' Application.

    A field or property with the name 'Author' was not found on the selected data source.

    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.Web.HttpException: A field or property with the name 'Author' was not found on the selected data source.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [HttpException (0x80004005): A field or property with the name 'Author' was not found on the selected data source.]
       System.Web.UI.WebControls.BoundField.GetValue(Control controlContainer) +1614899
       System.Web.UI.WebControls.BoundField.OnDataBindField(Object sender, EventArgs e) +64
       System.Web.UI.Control.OnDataBinding(EventArgs e) +99
       System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +92
       System.Web.UI.Control.DataBind() +15
       System.Web.UI.Control.DataBindChildren() +211
       System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +102
       System.Web.UI.Control.DataBind() +15
       System.Web.UI.WebControls.GridView.CreateRow(Int32 rowIndex, Int32 dataSourceIndex, DataControlRowType rowType, DataControlRowState rowState, Boolean dataBind, Object dataItem, DataControlField[] fields, TableRowCollection rows, PagedDataSource pagedDataSource) +155
       System.Web.UI.WebControls.GridView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) +2417
       System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +57
       System.Web.UI.WebControls.GridView.PerformDataBinding(IEnumerable data) +14
       System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +114
       System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) +31
       System.Web.UI.WebControls.DataBoundControl.PerformSelect() +142
       System.Web.UI.WebControls.BaseDataBoundControl.DataBind() +73
       System.Web.UI.WebControls.GridView.DataBind() +4
       Telerik.Cms.Engine.WebControls.SelectContentDialog.OnPreRender(EventArgs e) +37
       System.Web.UI.Control.PreRenderRecursiveInternal() +80
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Control.PreRenderRecursiveInternal() +171
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842
    


    Version Information: Microsoft .NET Framework Version:2.0.50727.4927; ASP.NET Version:2.0.50727.4927
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    12 May 2010
    Link to this post
    Hi Dave,



    I am not able to reproduce this problem locally. If you have made any upgrades recently make sure that you have not missed something to merge or add. Also make sure that the website has not been precompiled against .NET Framework version that is different from 2.0 or 3.5.
    Please check the project build version. Try using an old backup of your database with a test project to see whether the problem will persist.

    Do you have any custom module or provider that is different form the default installation?

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. Mark
    Mark avatar
    86 posts
    Registered:
    08 Feb 2010
    12 May 2010
    Link to this post
    Thanks Ivan

    I do have another project in the solution which is from the marketplace "Netopia.Sitefinity.Forms" (form builder by basem)

    And also the Rad Rotator Slideshow user control from the market place
    however, none of these are on the page

    Strangley both projects are set to run on framework 3.5, so i dont know where its getting 2.0 from????
    also if you add a new bit of shared content (instead of selecting a previous one) it then always me to select a previous one (i then have to delete the test one i just created)

    any ideas about the framework thing?
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    12 May 2010
    Link to this post
    Hi Dave,

    If you comment the forms module (Netopia.Sitefinity.Forms)the error should disappear. There is some problem with this module and Generic Content.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  5. bemara57
    bemara57 avatar
    135 posts
    Registered:
    27 Mar 2008
    06 Jul 2010
    Link to this post
    It seems like you are trying to select a "Form" from the "Select a Content"? Since the FormBuilder module is inheriting the Generic Content module, it seems I have to add these dummy metakeys in the web.config:

    <add key="Forms.Author" valueType="ShortText" visible="False" searchable="False" sortable="False" defaultValue=""/>
    <add key="Forms.Description" valueType="LongText" visible="False" searchable="False" sortable="False" defaultValue=""/>
    <add key="Forms.Category" valueType="ShortText" visible="False" searchable="False" sortable="False" defaultValue=""/>

    I have not found a way to modify the CtrlProps control to not add these columns in the list view of "Select a Content". Any tips would be great here. I hope this helps.
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    08 Jul 2010
    Link to this post
    Hello bemara57,

    Another options

    1. Overriding Telerik.Cms.Engine.WebControls.SelectContentDialog class and its CreateChildControls where the data binding is performed through ObjectDataSource control where GetContent method is called.

    2. Changing the template of SelectContentDialog where you have GridViewwith DataField="Author". This will require to override LayoutTemplatePath property.

    Both the options require overriding InitializeControls of GenericContentDesigner. Here is a good KB that explains how to do this

    All the best,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Register for webinar
6 posts, 0 answered