locked
Principal Context RRS feed

  • Question

  • User-1330916695 posted

    I am getting this error...and dont know why.   RSMI is what is in the dropdown.

    """""   Conversion from string "DC=RSMI" to type 'Integer' is not valid.    """"

    Dim Domain As String
    Domain = DropDownList_Domain.SelectedValue

    Dim CommonName As String
    CommonName = DropDownList_CommonName.SelectedValue

    Dim Company As String
    Company = Label_Company.Text

    Dim Area As String
    Area = Label_Area.Text

    Dim ctx As New PrincipalContext(ContextType.Domain, Domain, "CN=" & CommonName, "DC=" & Domain, "DC=" & Company, "DC=" & Area)

    Thursday, July 11, 2013 11:51 AM

Answers