soultricks.com

StorageLocation Error in Extensions

INTERNET
Who am I
Martí Micolau
@martímicolau
EXTERNAL REFERENCES:
CONSULTED SOURCES:
Content warning:
Article evaluation:

Often by downloading the Extensions from the official website of Blogengine.net to add them in the App_Code / Extensions path, I happened to have the following error:

Compiler Error Message: CS1061: ‘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 cause is due to incompatibility problems of some classes with the new version 2.5 of Blogengine.net. The problem can be solved in the following way:

Replace the occurrence of BlogSettings.Instance.StorageLocation with BlogConfig.StorageLocation and everything will work out.

Add a comment from StorageLocation Error in Extensions
Comment sent successfully! We will review it in the next few hours.