Products

Solutions

Learn More

Partners

Community

Blog

About

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

HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Error Upgrading from 9.1.1 to 9.2.2Error Upgrading from 9.1.1 to 9.2.2
Previous
 
Next
New Post
2/12/2019 9:32 AM
 

Getting an error trying to upgrade from 9.1.1 to 9.2.2, see below. I understand that the latest upgrade removed 500+ deprecated APIs, but how do I go about correcting this error if the API has been removed? I have removed the extension I thought was using the "effority.UserDirectory" however the folder still remains and if I remove the "effortiy.UserDirectory" folder the site crashes. I found where "GetUserRolesByRoleName" has been deprecated since DNN 5.0 but I can't find what has replaced it. Any help would be very appreciated.

Compiler Error Message: BC30456: 'GetUserRolesByRoleName' is not a member of 'DotNetNuke.Security.Roles.RoleController'

Source Error:

    Line 498:    Dim roleArr As ArrayList = roleCont.GetUserRolesByRoleName(PortalID, RoleName)

Source File: C:\inetpub\wwwroot\dotnetnuke\App_Code\effority.UserDirectory\Controller.vb Line: 498

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3282.0

 
New Post
2/13/2019 5:08 AM
 
Michael,

the Effority User Directory module has not been updated for years, and therefore uses deprecated stuff that seems to get kicked out after a while. I would try to find another module that is doing the stuff.

You could try to change that line of code to

Dim roleArr As New ArrayList(roleCont.GetUsersByRole(PortalID, RoleName))

but I can't guarantee that this works. VB is not my strength anymore...

Happy DNNing!
Michael


Michael Tobisch
DNN★MVP
dnn-Connect.org - The most vibrant community around the DNN-platform
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Error Upgrading from 9.1.1 to 9.2.2Error Upgrading from 9.1.1 to 9.2.2


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.

Content Layout

Subscribe to DNN Digest

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  

What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out