cancel
Showing results for 
Search instead for 
Did you mean: 

Failure loading roles to drop down list

Former Member
0 Kudos

I am trying to populate a dropdownkey with all the roles in the portal. I will post my code below. It works in Dev and QA environments but when we move it to production it runs for a long time then give an "Internet Explorer cannot display the webpage" error. ASP.Net 2.0 VB

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

FillDropDown(ddkRoleA)

End Sub

Public Sub FillDropDown(ByVal dropdown As DropDownByKey)

Dim ddli As New DropDownListItem

ddli.Text = "Please select a role"

ddli.Key = "0"

dropdown.Items.Add(ddli)

Dim objUserManagement As New UserManagement()

Dim portalroles As Array

portalroles = objUserManagement.SearchRoles("NA", 1, False, 0)

Dim role As String

For Each role In portalroles

Dim rInfo As RoleInfo = objUserManagement.GetRoleByUniqueName(role)

Dim rName As String = rInfo.DisplayName

Dim rID As String = rInfo.UniqueName

ddli = New DropDownListItem

ddli.Text = rName

ddli.Key = rID

dropdown.Items.Add(ddli)

Next role

End Sub

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Gabe,

how are you doing ?

if u're code works in dev AND qa but not in prod, it would probably point to an error in settings ( perhaps firewall) or the asp.net runtime or the permissions of the particular user (in UME) on the prod box

the codeshould be fine if it works in 2 places and not in 1

with respect,

amit

Former Member
0 Kudos

Hi Gabe,

thank you for the 'very helppful answer' reward points

please keep me updated on your progress, as i am keen to learn the outcome of the resolution

with respect,

amit