Way to upgrade Url redirection module to Kentico 11.

Targutai Yesugei asked on February 20, 2018 07:23

Hello!

I'm using a following module - https://devnet.kentico.com/articles/url-redirection. So, Kentico 11 is here, and after upgrading my site, i'm getting following error - Compiler Error Message: CS0246: The type or namespace name 'CMSLoaderAttribute' could not be found.

The problem is that it uses obsolete "CMSLoaderAttribute" class. Seems, it completely removed in new version. Kentico 10 release notes only says that i need to use custom module, but it's already a custom module.

So, can you suggest any ideas how to make this custom module work in Kentico 11?

Thank you in advance.

Correct Answer

David te Kloese answered on February 20, 2018 10:57

You have to register it as a custom module. For example:

[assembly: RegisterModule(typeof(CustomForumModule))]

public class CustomForumModule : Module
{
    public CustomForumModule()
        : base("CustomForums")
    {
    }

Compare these code samples:

1 votesVote for this answer Unmark Correct answer

Recent Answers


Targutai Yesugei answered on February 21, 2018 05:11

Hello, David!

Thanks a lot, it works.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.