+1-888-365-2779
Try Now
More in this section

Forums / Set-up & Installation / Importing Users

Importing Users

6 posts, 1 answered
  1. Samson
    Samson avatar
    14 posts
    Registered:
    01 Sep 2010
    28 Sep 2010
    Link to this post
    Is there a way to import users from a list such as an xl spreadhseet?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    28 Sep 2010
    Link to this post
    Hello Samson,

    Please take a look at Mass Enroll forum post.

    Greetings,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Samson
    Samson avatar
    14 posts
    Registered:
    01 Sep 2010
    28 Sep 2010
    Link to this post
    This is great I can import now. However I am workin on the change password check. It seems I keep getting the following error when importing users now. Please Advise

     

    Server Error in '/CompanyWeb' Application.

    The settings property 'ChangePassword' is of a non-compatible type.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.Configuration.SettingsPropertyWrongTypeException: The settings property 'ChangePassword' is of a non-compatible type.

    Source Error:

    Line 62:                             ProfileBase profile = ProfileBase.Create(newUser.UserName);
    Line 63:                             profile.SetPropertyValue("FirstName", newUser.UserName);
    Line 64: profile.SetPropertyValue("ChangePassword", true);Line 65:                             //set other profile date using the ProfileBase.SetPropertyValue(string PropertyName,string PropertyValue) as in above line
    Line 66:                             if (!Roles.RoleExists(userRole))

    Source File: c:\Program Files\telerik\Sitefinity3.7\WebSites\CompanyWeb\Tools\ImportUsersTool\ImportUsersTool.ascx.cs    Line: 64

    Stack Trace:

    [SettingsPropertyWrongTypeException: The settings property 'ChangePassword' is of a non-compatible type.]
       System.Configuration.SettingsBase.SetPropertyValueByName(String propertyName, Object propertyValue) +1057383
       System.Configuration.SettingsBase.set_Item(String propertyName, Object value) +105
       System.Web.Profile.ProfileBase.SetInternal(String propertyName, Object value) +140
       System.Web.Profile.ProfileBase.set_Item(String propertyName, Object value) +71
       System.Web.Profile.ProfileBase.SetPropertyValue(String propertyName, Object propertyValue) +10
       ImportUsersTool.importButton_Click(Object sender, EventArgs e) in c:\Program Files\telerik\Sitefinity3.7\WebSites\CompanyWeb\Tools\ImportUsersTool\ImportUsersTool.ascx.cs:64
       System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) +111
       System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +79
       System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +175
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565
    


    Version Information: Microsoft .NET Framework Version:2.0.50727.3615; ASP.NET Version:2.0.50727.3614
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    28 Sep 2010
    Link to this post
    Hello Samson,

    The error says that the profile property type you have used is not correct and it is not System.Boolean. Please make sure that you have set the correct type for ChangePassword profile property. Here is the MSDN reference.

    Kind regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Samson
    Samson avatar
    14 posts
    Registered:
    01 Sep 2010
    28 Sep 2010
    Link to this post
    this is how it looks in My web.config

    <profile defaultProvider="Sitefinity">
          <providers>
            <clear />
            <add name="Sitefinity" connectionStringName="DefaultConnection" applicationName="/" type="Telerik.DataAccess.AspnetProviders.TelerikProfileProvider, Telerik.DataAccess" />
          </providers>
          <properties>
            <add name="FirstName" />
            <add name="LastName" />
            <add name="Position" />
            <add name="Photo_Hidden" />
            <add name="ChangePassword"/>
            <add name="Photo" defaultValue="~/Sitefinity/Common/Images/defaultavatar.gif" />
            <group name="InstantMessenger">
              <add name="IM_Type" />
              <add name="IM_Value" />
            </group>
            <group name="Phone">
              <add name="Value" />
              <add name="Type" />
            </group>
          </properties>
        </profile>
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    28 Sep 2010
    Link to this post
    Hi Samson,

    You have not set the property type. Please check the MSDN article. This is something not specific to Sitefinity or our API.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
    Answered
Register for webinar
6 posts, 1 answered