AddThis Extension not working with 2.0

Topics: Controls
Mar 31, 2011 at 5:15 PM

Hello;

Getting the following error on compilation when adding the AddThis extension, using version 2.0 of the blog. 

CS0246: The type or namespace name 'ExtensionSettings' could not be found (are you missing a using directive or an assembly reference?)

Line 16: }
Line 17: 
Line 18: public override ExtensionSettings AddServiceConfiguration(ExtensionSettings settings)
Line 19: {
Line 20: settings.Help = "<span style=\"font-weight: bold;\">Twitter</span> (http://www.twitter.com/) provides counter and publishing service. " +

Source File: c:\Users\jKubik\Documents\Visual Studio 2008\Projects\BlogEngine20\App_Code\Extensions\BookmarkButtons\TwitterButton.cs Line: 18

Coordinator
Mar 31, 2011 at 5:50 PM

Did you try installing it from gallery?

Mar 31, 2011 at 5:55 PM

Clicking on the link in the extension gallery takes you to ... http://www.mbaldinger.com/post/AddThisNET-v2-for-BlogengineNET-released.aspx ... that's where i got it.

Coordinator
Mar 31, 2011 at 6:51 PM

One of the links pointed to the project site, but it does not mean that versions are identical. Version in the gallery tested with BE 2.0 before uploaded.

Apr 1, 2011 at 4:35 AM
Edited Oct 24, 2011 at 9:42 PM

You need to add this code to make it work with BE 2.0

 

using BlogEngine.Core.Web.Extensions;  // Required for BE 2.0 when using ExtensionSettings

 

To every file in the AddThis Extension :)


Java Blog

Apr 3, 2011 at 1:18 PM

I added that code to the AddThis.cs file and I'm still getting the same error.

Apr 3, 2011 at 1:28 PM

I just looked at the error again and I realized it was for the ifle AddThisButton.cs.  So I changed it on that and it gave me an error for another file.  I eventually had to change this for every file in the BookmarkButtons directory as well as the AddThis.cs file in the extensions directory.  But now it seems to be working OK.