Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • trfletch 595 posts 571 karma points
    Jul 31, 2009 @ 10:16
    trfletch
    0

    Error in Users section after changing membership provider

    Hi,

    I have changed the membership provider in web.config for members of the website but since the change if I go into the users section of Umbraco and click on a User it get the following error message appear on the right hand side, I also get an error when I click on one of the folder in the member section but that is not as important at the moment. Can anyone tell me what I am doing wrong? The error in the Users section is as follows:

    Unable to cast object of type 'System.Data.Linq.DataQuery`1[MembershipRoleProviders.User]' to type 'MembershipRoleProviders.User'.

  • Richard Soeteman 3875 posts 12037 karma points MVP
    Aug 01, 2009 @ 07:27
    Richard Soeteman
    0

    Hi,

     

    Did you by accident also changed the configuration settings for the user provider in your web.config?

    Cheers,

    Richard

  • trfletch 595 posts 571 karma points
    Aug 04, 2009 @ 11:36
    trfletch
    0

    These are the changes I have made in web.config, have I done something wrong?

    <membership defaultProvider="TESTMembershipProvider">
          <providers>
            <clear/>
            <add name="TESTMembershipProvider" type="MembershipRoleProviders.TEST.Providers.TestMembershipProvider"
    connectionStringName="MembershipRoleProviders.My.MySettings.TESTProvidersConnectionString"/>
    <add name="UsersMembershipProvider" type="umbraco.providers.UsersMembershipProvider" enablePasswordRetrieval="false" enablePasswordReset="false"
    requiresQuestionAndAnswer="false" />
          </providers>
         
        </membership>
  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies