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?
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."
Where can I find a list of APIs being removed?
Please see the attached Excel file for a list as well as the alternate API information.