This project is read-only.

Upgrading 1.6 to 2.0RC

Dec 17, 2010 at 6:44 AM
Edited Dec 17, 2010 at 6:45 AM

When I try and integrate a number of extensions, I get the following error:

The type or namespace name 'ExtensionSettings' could not be found

Any thoughts what could be causing this?

The Extensions in question are:

  • CommentRelish
  • SubscribeRemind
  • YouTubePlayer
  • VimeoPlayer

This is using the XML datasource

Dec 17, 2010 at 6:48 AM

At the top of those .CS files (line #1), add:

using BlogEngine.Core.Web.Extensions;

Dec 17, 2010 at 9:52 PM

Doh, knew it had to be something simple like this. Thanks Ben, always you are most helpful!

Dec 23, 2010 at 8:07 PM

Hi Ben. Would also like to upgrade from to RC 2.0. I added the line 'Using BlogEngine.Core.Web.Extensions' as you suggested, but there is still a compiler error: "Unknown server tag 'Blog: blog Cumulus'in my widget (Tag Cumulus). What can be causing this error? Are you kind enough to look after the code on this link ''. Thanks for your help!

Dec 23, 2010 at 8:15 PM

@pokni - in that widget code behind files (widget.ascx.cs and edit.ascx.cs) add:

using App_Code.Controls;

Dec 23, 2010 at 8:16 PM

This is the other big one to look out for.

In BlogCumulus.cs (in App_Code/controls), it has "namespace Controls" at the top.  Change that to "namespace App_Code.Controls".

I think that's the only change needed.

Dec 23, 2010 at 9:43 PM

It works! Many thanks for your help and Merry Christmas!

Jan 12, 2011 at 11:06 PM

Hi @ben or @rtur!

My theme which works fine in 1.6 gives a Build Error in 2.0 RC with respect to a Page_Load in Postview.ascx.cs. What causes this error? Can you help?

Build Error:'BlogEngine.Core.Web.Controls.PostViewBase' does not contain a definition for 'Page_Load'


using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class themes_Knigge_Postview : BlogEngine.Core.Web.Controls.PostViewBase
    protected string ImageName;
    protected string CategoryImage;
    protected string FeaturedImage;
    protected void Page_Load(object sender, EventArgs e)
        string imageRoot = BlogEngine.Core.Utils.AbsoluteWebRoot.ToString() +
        string catImageName;
        if (Post.Categories.Count > 0)
            catImageName = Post.Categories[0].Title.Replace(".", "");
            catImageName = "Noavatar";
        ImageName = catImageName + ".jpg";
        CategoryImage = imageRoot + catImageName + ".jpg";
        FeaturedImage = imageRoot + catImageName + "Featured.jpg";

        base.Page_Load(sender, e);

Jan 13, 2011 at 8:57 AM

Someone else had this error too.

You can just delete that line:   base.Page_Load(sender, e).