Products

Solutions

Resources

Partners

Community

About

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Open Core Testi...Open Core Testi...Obsolete/Deprecated Methods Dropped in 6.0Obsolete/Deprecated Methods Dropped in 6.0
Previous
 
Next
New Post
4/10/2011 6:01 PM
 
In testing some different module installs in 6.0 CTP2 (444), I received the following error when attempting to update changes to the configuration page for DNN Gallery v 4.03.03:

Method: DotNetNuke.Modules.Gallery.Utils.SyncFolderPermissions
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: Method not found: 'DotNetNuke.Security.Permissions.TabPermissionCollection DotNetNuke.Security.Permissions.TabPermissionController.GetTabPermissionsCollectionByTabID(Int32, Int32)'. ---> System.MissingMethodException: Method not found: 'DotNetNuke.Security.Permissions.TabPermissionCollection DotNetNuke.Security.Permissions.TabPermissionController.GetTabPermissionsCollectionByTabID(Int32, Int32)'. at DotNetNuke.Modules.Gallery.Utils.SyncFolderPermissions(String specialPermissions, Int32 ModuleId, Int32 TabId) at DotNetNuke.Modules.Gallery.Settings.cmdSave_Click(Object sender, EventArgs e)

This was not surprising as Gallery had originally been designed as a DNN 3 module with the above section of code added when it was updated to run on DNN 4.9.3 and above. In preparing a Gallery 4.04.00 upgrade (targeting DNN 5.6.2 minimum)  to hopefully be released when DNN 6.0 releases I had already resolved some 43 warnings related to deprecated core method references - primarily in the area of file system and module/tab/folder permissions.

In comparing some of the DNN 5.6.2 VB code with the C# DNN 6.0 code, it appears that many other previously (as of DNN 5.1) deprecated methods have been removed from the codebase. I agree that this is probably the best time to drop them but we need to stress to extensions builders still supporting DNN 4.x that they MUST thoroughly test their extensions against 6.0 and in many cases will need to prepare a version that supports 5.x and above - likewise for any older "core" modules that are not already being updated for a 6.0 release.


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
4/11/2011 9:32 AM
 
William

Thank you very much for this update!

Sergey
 
New Post
4/11/2011 9:38 AM
 
Bill, there is no plan to remove any obsoleted methods (though Charles is investigating moving them to a seperate assembly and using redirects to that so that the code is "cleaner") - if you find any such issues please log them as serious bugs. We'll be running the code through a build process to ensure that binary compatibility is maintained but please flag any you catch now so the CTP's can be tested with all 3rd party extensions.

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
4/11/2011 2:34 PM
 

Compiler warnings are important, but only part of the deprecation process.

When code is deprecated it should be commented out and replaced with new code that demonstrates intended use. The person responsible for making the decision is the best person to provide at least one example snippet.

With version 6 being released, now is the time to fix up this mess, especially with core code. As William pointed out, there are 30+ deprecated warnings with CTP2 build 444.  

Leave the obsolete methods for compatibility but please offer us some direction to new features.

Simply posting a deprecation notice is not good enough. At some point you actually have to do something about it.


Dwayne J. Baldwin
 
New Post
4/11/2011 3:11 PM
 
@Dwayne - That guidance is coming.  CTP2 was dropped in the middle of a major change to the Folder/File APIs.  The developer was still working on moving code from the old API to the new API and putting the appropriate deprecations in place.  All of that is expected to be cleaned up when that new API is fully complete which should be in time for the first Beta at the end of April.

Joe Brinkman
DNN Corp.
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Open Core Testi...Open Core Testi...Obsolete/Deprecated Methods Dropped in 6.0Obsolete/Deprecated Methods Dropped in 6.0


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out