More in this section

Forums / Developing with Sitefinity / Issue with Sitefinity 3.0 membership provider

Issue with Sitefinity 3.0 membership provider

7 posts, 0 answered
  1. UI Crew
    UI Crew avatar
    151 posts
    Registered:
    27 Sep 2012
    13 Aug 2007
    Link to this post
    Hi,

    I have just about finished integrating (very loosely) dashCommerce with Sitefinity and on the store checkout page are trying to save the Shipping and billing addresses as XML into the users profile but I get an error saying won't allow more than 250 chars.

    Kinda weird cause I don't run into this problem with the standard asp.net membership provider however looking at the database the "profile" table in the standard provider uses "Text" and the Telerik provider uses ncharvar(MAX) which should allow more than 250 chars right? Puzzling.

    Wondering if you have any ideas to get me past this huddle.

    In my web.config under the profile section I have :

            <add name="LastShippingAddress" type="Commerce.Common.Address" allowAnonymous="true" />
            <add name="LastBillingAddress" type=" Commerce.Common.Address" allowAnonymous="true"/>

    Commerce.Common.Address is a custom type and as like I said with the standard asp.net provider no errors occur but with the Telerik one the error it throws is:

    Value for property Text is too long. Maximun length is 250

    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: Nolics.ORMapper.Base.LengthException: Value for property Text is too long. Maximun length is 250

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Stack Trace:

    [LengthException: Value for property Text is too long. Maximun length is 250]
    Telerik.DataAccess.AspnetProviders.TelerikProfileProvider.SetPropertyValues(SettingsContext context, SettingsPropertyValueCollection properties) +1877

    System.Configuration.SettingsBase.SaveCore() +379
    System.Configuration.SettingsBase.Save() +77
    System.Web.Profile.ProfileBase.SaveWithAssert() +31
    System.Web.Profile.ProfileBase.Save() +63
    System.Web.Profile.ProfileModule.OnLeave
    (Object source, EventArgs eventArgs) +2383455
    System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64



    Version Information: Microsoft .NET Framework Version:2.0.50727.312; ASP.NET Version:2.0.50727.833

    Got any thoughts...

    Cheers,

    Seth
  2. Pepi
    Pepi avatar
    981 posts
    Registered:
    31 Jan 2017
    13 Aug 2007
    Link to this post
    Hi Seth,

    Thanks a lot for pointing out this issue. The right table for saving profile fields is telerik_UserMetaInfo and the max length of Text column is 250 characters. We will remove this limitation for the next release.

    Your Telerik points are updated.

    Kind regards,
    Pepi
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI Crew
    UI Crew avatar
    151 posts
    Registered:
    27 Sep 2012
    14 Aug 2007
    Link to this post
    Hi Pepi,

    Thanks very much for the points really appreciate it

     We were meant to be deploying the new site at the end of this week! And not being able to save an address into the users profile puts up a bit of a challenge.

    Is there any work around to this issue other than having to dump the Telerik membership provider and go with the standard asp.net provider.

    Is there no way that the field limitation can be changed programmatically using Nolics or something?

    If  changing to the standard asp.net membership provider is the only solution what will be the impact of this change on Sitefinity? Obviously you created your own provider for a reason?

    Cheers,

    Seth
  4. Vlad
    Vlad avatar
    498 posts
    Registered:
    19 Jun 2017
    14 Aug 2007
    Link to this post
    Hi Seth,

    Currently, we can provide you the following work around:

    1) Add a binding redirect for Telerik.DataAccess.dll assembly in the web.config. For the oldVersion attribute set the version number of the ~/bin/Telerik.DataAccess.dll:
    <configuration> 
        ...  
        <runtime> 
            <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">  
                <dependentAssembly> 
                    <assemblyIdentity name="Telerik.DataAccess" publicKeyToken="dfeaee0e3978ac79" culture="neutral" /> 
                        <bindingRedirect oldVersion="3.0.1323.1" newVersion="3.0.1344.1"/>  
                </dependentAssembly> 
            </assemblyBinding> 
        </runtime> 

    2) Open the database and modify telerik_UserMetaInfo table, increase the size of the Text column (you can set it to max)

    3) Unzip the attached .ZIP file and copy the Telerik.DataAccess.dll  assembly into the bin folder of your project.

    4) Finally restart the application.


    Please let us know how it goes.

    Regards,
    Vlad
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  5. UI Crew
    UI Crew avatar
    151 posts
    Registered:
    27 Sep 2012
    14 Aug 2007
    Link to this post
    Thanks so much guys I will give it a go!
  6. UI Crew
    UI Crew avatar
    151 posts
    Registered:
    27 Sep 2012
    15 Aug 2007
    Link to this post
    Hi,

    Not quite there, getting this error below when I try to load the website. I have SP2 which seems to have Nolics 4.2.2520.4

    Server Error in '/Funky Friends Factory' Application.
    --------------------------------------------------------------------------------

    Could not load file or assembly 'Nolics.Engine.v4.2, Version=4.2.2522.4, Culture=neutral, PublicKeyToken=c50af72fde0670b7' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)


    Do I need a new Nolics dll?

    Thanks

    Seth

  7. Vlad
    Vlad avatar
    498 posts
    Registered:
    19 Jun 2017
    15 Aug 2007
    Link to this post
    Ehh, sorry Seth,

    Find the new Telerik.DataAccess.dll assembly, built with the right version of Nolics in the attached ZIP.


    Kind regards,
    Vlad
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Register for webinar
7 posts, 0 answered