DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Updating DNN from version 8.0.4 to 9.10.2 and Telerik removal

You are not authorized to post a reply.

New Around Here

    Hi everyone. I have a problem with configuring some files after upgrade to DNN 9.10.2. First of all, we had some custom skins with code blocks <% .. %> in it and I solved loading skins problem with adding <asp:PlaceHolder runat="server"> <% %> </asp>.

    BUT, new problem occured when I added our custom code we used in older versions written in Default.aspx.

            string[] roles = new DotNetNuke.Security.Roles.RoleController().GetRolesByUser(DotNetNuke.Entities.Users.UserController.GetCurrentUserInfo().UserID, new DotNetNuke.Entities.Users.OnlineUserInfo().PortalID);
            if (
                roles.Contains("Role1") ||
                roles.Contains("Role2") ||
                roles.Contains("Role3") ||

    So, as GetRolesByUser is deprecated in DotNetNuke 6.2 I didn't find exactly with which one method to replace it? Found this: https://dnncommunity.org/forums/aft/1119  but I'm not sure if this would work? I tried with: UserController.GetUserById(new DotNetNuke.Entities.Users.OnlineUserInfo().PortalID, DotNetNuke.Entities.Users.UserController.GetCurrentUserInfo().UserID).Roles;

    but then I get

    When I delete any code in <asp:PlaceHolder runat="server"><% ..code.. %></asp:PlaceHolder> my page loads fine. Like it won't work with code between block <asp:PlaceHolder runat="server"><% .... %></asp:PlaceHolder>

    Any ideas?


    Also, I was wondering, regarding Telerik component vulnerability.. As we use several third party modules with Telerik and, for now, removing Telerik is not an option (but it definetly will be in future), I tested uninstalling Telerik from DNN and removing any references from web.config as described in documentation but copying back Telerik dll's to bin folder. So, just copying back dll's, with no references anywhere in config. In that case, our modules that user Telerik work, so I was wondering is there a way that this solution might be some kind of workaround to keep using Telerik without some security issues??

    Veteran Member

      Please do not double post - this is the wrong forum, as it is about the community, and not to discuss any problems.

      Happy DNNing!

      Michael Tobisch

      dnnWerk Austria
      DNN Connect
      You are not authorized to post a reply.

      These Forums are dedicated to the discussion of DNN Platform.

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

      1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
      2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
      3. 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.
      4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
      5. No Flaming or Trolling.
      6. No Profanity, Racism, or Prejudice.
      7. Site Moderators have the final word on approving / removing a thread or post or comment.
      8. English language posting only, please.

      Would you like to help us?

      Awesome! Simply post in the forums using the link below and we'll get you started.

      Get Involved