Posted on 2/8/2011

Upgrading to BlogEngine.NET 2.5 was fairly straight forward. The upgrade instructions suggest that you start from a v2.5 installation, and then copy your existing data and settings into the fresh install. But, after the upgrade I did encounter three compiler errors.

One error was triggered by 'FileExtension'

  • Error    13    'BlogEngine.Core.BlogSettings' does not contain a definition for 'FileExtension' and no extension method 'FileExtension' accepting a first argument of type 'BlogEngine.Core.BlogSettings' could be found (are you missing a using directive or an assembly reference?)

Two errors were triggered by 'StorageLocation'

  • Error    13    'BlogEngine.Core.BlogSettings' does not contain a definition for 'StorageLocation' and no extension method 'StorageLocation' accepting a first argument of type 'BlogEngine.Core.BlogSettings' could be found (are you missing a using directive or an assembly reference?)  

 

The first error was easily corrected by replacing the single occurrence of

BlogSettings.Instance.FileExtension

with

BlogConfig.FileExtension 

 

The other errors were corrected by replacing the two occurrences of

BlogSettings.Instance.StorageLocation 

with

BlogConfig.StorageLocation

 

All of the corrections were made in the file located here: \App_Data\packages\ArthemiaPro.2.0.0.0\content\themes\ArthemiaPro\PostViewFrontPage.ascx.cs

Your file path may vary, but you can search for BlogSettings.Instance.FileExtension and StorageLocation.