Deprecated Methods in version 9.2


Shortly after the release of DNN 9.1.1 we discovered over 500 deprecated APIs that were still included in the source files. These APIs were deprecated for a number of reasons including security vulnerabilities, poor performance, the presence of bugs, and being superseded by later APIs. As of DNN 9.2 these APIs have been removed.


Am I using deprecated APIs?

If you have not updated certain extensions (modules, themes, skins) in a while, it's likely that you are using deprecated APIs.

How can I tell if I'm using deprecated APIs?

Recompile your application with a newer version of DNN (pre-9.2) and look for warnings in Visual Studio. Your extension will run while using a deprecated API, although you are highly recommended to use the alternate APIs.

What errors might I see?

As an example, you may see errors that look like the following:

System.MissingMethodException: Method not found: 'Void DotNetNuke.Framework.CDefault.AddStyleSheet(System.String, System.String)

Will my site break if I upgrade to 9.2?

It may. We have removed over 500 deprecated APIs in 9.2, and if you happen to use any one of them, the page hosting that module will definitely break. Please advise your module developer to update the module with the suggested alternate API.

How do I know the alternate APIs to use?

We always note down the name of new APIs (if there is one) while deprecating APIs. This will appear in the compiler warning. As an example, the method "protected bool IsPreview" in namespace "DotNetNuke.UI.ControlPanels.ControlPanelBase" has been "Deprecated in 5.0. Replaced By UserMode."


How can I obtain the list of changed Deprecated Methods in version 9.2?

Please click the link below for direct download.

List of Changed Deprecated Methods in version 9.2

Related Article: Deprecated Methods

Content Author: Tony Lee




Please sign in to leave a comment.