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

Forums / Set-up & Installation / "Could not find a type for a name" exception after upgrade

"Could not find a type for a name" exception after upgrade

6 posts, 0 answered
  1. Gary
    Gary avatar
    91 posts
    Registered:
    19 Jul 2007
    04 Mar 2009
    Link to this post
    I upgraded from Sitefinity 3.2 to 3.6. After the upgrade I see the following exception in place of the expected news items:
    Could not find a type for a name. The type name was 'Telerik.News.WebControls.NewsList, Telerik.News, Version=3.2.1870.2, Culture=neutral, PublicKeyToken=dfeaee0e3978ac79'.
    I tracked this back to the records in sf_WebControlBase, which for the most part specify an explicit Version attribute of 3.2.xxxx in the Type column for the various Telerik web controls.

    I understand that the error occurs because these controls have now been upgraded to a new version and the old version of the controls are no longer found, but I don't know why I've encountered this problem when others seem to have upgraded without issue.

    Thanks for your assistance.

    Gary
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    04 Mar 2009
    Link to this post
    Hello Gary,

    NewsList control has been removed from Telerik.News assemble in 3.6. The control is obsolete since Sitefinity 3.2SP2. You should use NewsView control instead NewsList.

    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. Gary
    Gary avatar
    91 posts
    Registered:
    19 Jul 2007
    08 Mar 2009
    Link to this post
    Thanks, Ivan. That explains a lot. Did you know that the "Public End" News documentation in the 3.5 user manual has not been updated to reflect this change?

    I need to some help or some documentation that describes how to upgrade my existing page that uses the now obsolete SingleNews item control. I see in the NewsView control to point to the page ("How to display the full item information page? - Use a page especially prepared to hold the full info"). However, I can't figure out how to configure the NewsView control on the target page to display the selected news item. 

    Thanks,
    Gary
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    08 Mar 2009
    Link to this post
    Hello Gary,

    We are working on updating User and Dev manuals. To configure NewsView control to display the whole info of an item to a different page you could do the following

    1. Create a page where you have NewsView control( for example pageWithNewsView) which will list all items. Generally when you have added the control and clink on any item you are redirected to http://yourwebsite/pageWithNewsView/[Publication_Date]/Tite.aspx ( it is the url format which tells the parser how to form links)

    2. Create a second different page - NewsItemDetails which will hold the full info. You should add NewsView control to this page. Then, when you click on an item a link will be:

    http://yourwebsite/NewsItemDetails/[Publication_Date]/Title.aspx

    Instead of 'Use a page especially prepared to hold the full info" option you could use SingleItemUrl property wich can be found at Advanced mode of NewsView control, Section Explicit links.

    You can work with control Behavior Mode - Master, Detail, Auto. - On your NewsItemDetails page you can set NewsView control to use Detail mode, so that no items will be visible on this page until someone hits news item link from pageWithNewsView.aspx.

    All the best,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  5. Janet Webb
    Janet Webb avatar
    2 posts
    Registered:
    17 Nov 2008
    27 Aug 2010
    Link to this post
    I know I am replying to an old post, but I am new to Sitefinity and your example is very easy to follow.  I have a question about this statement, "On your NewsItemDetails page you can set NewsView control to use Detail mode, so that no items will be visible on this page until someone hits news item link from pageWithNewsView.aspx."

    How do I set it to use detail mode?
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    27 Aug 2010
    Link to this post
    Hello Janet Webb,

    Drop NewsView control on a page. Open the control for editing. Click on its Advanced Tab. Expand Behavior section and the first property is called BehaviorMode. Thee is a drop down that you have to set to "Detail". Then, click "I am done" and the list of items should disappear.

    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
Register for webinar
6 posts, 0 answered