Invalid type specified Telerik.Sitefinity.Security.Data.Memb

Posted by Community Admin on 04-Aug-2018 14:25

Invalid type specified Telerik.Sitefinity.Security.Data.MembershipDataProvider

All Replies

Posted by Community Admin on 18-May-2011 00:00

I'm using sitefinity 4.1 and I'm in the process of building a custom membership provider. I just found out I can't open a usersprofile any more. I have no idea how this happened so I decided to trace my steps and undo all changes I made to get the membership provider to work. 
I removed all references to my custom membership provider in the web.config and securityconfig.config. This didn't work so I commented out all code for the custom membership provider in the hope to get another exception. Unfortunately I keep getting the error message underneath when I try to access a users's profile.
What did I do to break it?

----------------------------------------
Timestamp: 18-5-2011 13:12:22


Message: HandlingInstanceID: 2578af4e-9f4b-45f3-b4ea-4f2631796189
An exception of type 'System.ArgumentException' occurred and was caught.
------------------------------------------------------------------------
05/18/2011 15:12:22
Type : System.ArgumentException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Message : Invalid type specified Telerik.Sitefinity.Security.Data.MembershipDataProvider
Source : Telerik.Sitefinity
Help link : 
ParamName : 
Data : System.Collections.ListDictionaryInternal
TargetSite : TProviderBase InstantiateProvider(Telerik.Sitefinity.Configuration.IDataProviderSettings, System.Type, Telerik.Sitefinity.Abstractions.ExceptionPolicyName, Telerik.Sitefinity.Data.ManagerBase`1[TProviderBase])
Stack Trace :    at Telerik.Sitefinity.Data.ManagerBase`1.InstantiateProvider(IDataProviderSettings providerSettings, Type providerType, ExceptionPolicyName policy, ManagerBase`1 manager)


Additional Info:


MachineName : WERKSTATION
TimeStamp : 18-5-2011 13:12:22
FullName : Telerik.Sitefinity.Utilities, Version=4.1.1339.0, Culture=neutral, PublicKeyToken=b28c218413bdf563
AppDomainName : /LM/W3SVC/1/ROOT/VershuysWeb-1-129501979329283487
ThreadIdentity : 
WindowsIdentity : RSS\bart
Requested URL : /VershuysWeb/Sitefinity/Profile




Category: ErrorLog


Priority: 0


EventId: 9010


Severity: Warning


Title:Enterprise Library Exception Handling


Machine: WERKSTATION


App Domain: /LM/W3SVC/1/ROOT/VershuysWeb-1-129501979329283487


ProcessId: 1876


Process Name: C:\Windows\SysWOW64\inetsrv\w3wp.exe


Thread Name: 


Win32 ThreadId:2412


Extended Properties: 
----------------------------------------
----------------------------------------
Timestamp: 18-5-2011 13:12:28


Message: HandlingInstanceID: 3189d9a6-bf0e-4f1d-b310-a0a600caf737
An exception of type 'System.NullReferenceException' occurred and was caught.
-----------------------------------------------------------------------------
05/18/2011 15:12:28
Type : System.NullReferenceException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Message : Object reference not set to an instance of an object.
Source : Telerik.Sitefinity
Help link : 
Data : System.Collections.ListDictionaryInternal
TargetSite : Telerik.Sitefinity.Metadata.Model.MetaTypeDescription GetMetaTypeDescription(System.Type)
Stack Trace :    at Telerik.Sitefinity.Data.Metadata.MetadataManager.GetMetaTypeDescription(Type dynamicType)
   at Telerik.Sitefinity.Fluent.DynamicData.DynamicTypeDescriptionFacade.LoadDynamicTypeDescription(Type dynamicType)
   at Telerik.Sitefinity.Modules.UserProfiles.Web.UI.UserProfilesControl.InitializeControls(GenericContainer dialogContainer)
   at Telerik.Sitefinity.Web.UI.SimpleView.CreateChildControls()
   at System.Web.UI.Control.EnsureChildControls()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Control.PreRenderRecursiveInternal()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)


Additional Info:


MachineName : WERKSTATION
TimeStamp : 18-5-2011 13:12:28
FullName : Telerik.Sitefinity.Utilities, Version=4.1.1339.0, Culture=neutral, PublicKeyToken=b28c218413bdf563
AppDomainName : /LM/W3SVC/1/ROOT/VershuysWeb-1-129501979329283487
ThreadIdentity : bart
WindowsIdentity : RSS\bart
Requested URL : /VershuysWeb/Sitefinity/Profile




Category: ErrorLog


Priority: 0


EventId: 90000


Severity: Error


Title:Enterprise Library Exception Handling


Machine: WERKSTATION


App Domain: /LM/W3SVC/1/ROOT/VershuysWeb-1-129501979329283487


ProcessId: 1876


Process Name: C:\Windows\SysWOW64\inetsrv\w3wp.exe


Thread Name: 


Win32 ThreadId:2412


Extended Properties: 
----------------------------------------


Posted by Community Admin on 18-May-2011 00:00

Hi,

you have to comment definition of Membership in web.Config.
In SecurityConfig.config, you modified your membership to enabled="False" and you suppress DefaultMembershipProvider attributes on the first line.

regards,
Nicolas

Posted by Community Admin on 18-May-2011 00:00

Hi,

I did just that. Commented out the web.config line:

    <membership defaultProvider="Default">
      <providers>
        <clear/>
        <add name="Default" type="Telerik.Sitefinity.Security.Data.SitefinityMembershipProvider, Telerik.Sitefinity"/>
        <!--<add name="Vershuys" type="RSS.VH.Business.Providers.VershuysMembershipProvider, RSS.VH.Business" passwordFormat="Clear"/>-->
      </providers>
    </membership>


I removed the lines from SecurityConfig.config. Now it looks like this:
<?xml version="1.0" encoding="utf-8"?>
<securityConfig xmlns:config="urn:telerik:sitefinity:configuration" xmlns:type="urn:telerik:sitefinity:configuration:type" config:version="4.1.1339.0" validationKey="9B3C0C463A136978ADD5AA2746AFAFC9D8E955D7228A13A73275C4DC5E08941B8747916CD" decryptionKey="2E8FDAB28E63F1575AFDF4FF481B7456DBDEDE1F342B71FAF">
 <applicationRoles>
 <role id="8a5c7863-6c11-4353-9a75-" name="Everyone" />
 <role id="4375c68c-b191-4647-817f-" name="Anonymous" />
 <role id="b2cca7d6-80b7-4ee2-a281-" name="Authenticated" />
 <role id="7a9e798d-0a33-4b95-a7a5-" name="Owner" />
 <role id="1dbf1a24-0752-4f1a-984d-" name="Administrators" />
 <role id="2526a565-194f-49b4-aed1-" name="BackendUsers" />
 <role id="44cf80fb-72de-47d5-87ae-" name="Authors" />
 <role id="73c9376e-92e0-4abc-ad2d-" name="Editors" />
 <role id="55492e5d-9c40-4e06-b504-" name="Designers" />
 </applicationRoles>
 <securityProviders>
 <add version="4.1.1339.0" name="OpenAccessDataProvider" />
 <add version="4.0.1210.0" name="XmlDataProvider" />
 </securityProviders>
</securityConfig>


Unfortunately this doesn't solve my problem.

Regards,
Bart


Posted by Community Admin on 18-May-2011 00:00

Hi,

<securityConfig authCookieName=".SFAUTH-Legal" rolesCookieName=".SFROLES-Legal" validationKey="0E892F3E507A77DADCB17B484BEEBD3ACC244207075C08EFEE94C26CFE281D2FCB870DB7D02A39B0FEA6112126F6F7A3F65F0891F707EAE8CB43CA821D11628B" decryptionKey="C6B6294A1E377A1258005832ACB11A005EF02D719C36B4AAC84F7DE87CA7D721" loggingCookieName=".SFLOG-Legal">
    <applicationRoles>
        <role id="66452b57-a42f-4653-b683-2f8b3b2d2620" name="Everyone" />
        <role id="e7807969-db2b-4df5-8a7b-c45faa4c2d27" name="Anonymous" />
        <role id="4dc1bd63-9bc1-47fa-8b67-7c425d360a03" name="Authenticated" />
        <role id="3b64524b-81ca-4e4f-a1b5-de82de33fb10" name="Owner" />
        <role id="7c4f7ee9-d872-4261-8e6b-f0d65ba0f397" name="Administrators" />
        <role id="1bfaae99-c9c5-4a1b-9401-9bad2bb7cab1" name="BackendUsers" />
        <role id="8fb8ea1e-e1cb-404d-a536-93e3924063c1" name="Authors" />
        <role id="7c14fb75-b54d-4177-952d-e16dc362229a" name="Editors" />
        <role id="ee4ebf09-5a52-4308-8a0b-df8a6580ee79" name="Designers" />
    </applicationRoles>
    <securityProviders>
        <add version="4.1.1339.0" name="OpenAccessDataProvider" />
    </securityProviders>
</securityConfig>

It's an extract of mine SecurityConfig, you can try to add authCookieName=".SFAUTH-Legal" rolesCookieName=".SFROLES-Legal" and loggingCookieName=".SFLOG-Legal" . And suppress
XmlDataProvider in SecurityProciders.

Regards,
Nicolas

Posted by Community Admin on 18-May-2011 00:00

Sorry, didn't do the trick. Still same error. Even when I try to create a new user I get this error.
Do you have any other suggestions to look for?

Regards,
Bart

Posted by Community Admin on 18-May-2011 00:00

Take a look in UserProfilesConfig.config, it can still references your custom membership.

Regards,
Nicolas

Posted by Community Admin on 18-May-2011 00:00

Hi,

I solved it by restoring the database from another develop machine. I noticed everything was working fine on the other machine. I made a backup of the "corrupted" datebase before the restore. Is it usefull for telerik to find out what's wrong with the database?

Regards,
Bart

Posted by Community Admin on 19-May-2011 00:00

Hello El Barto,

If it's not too much trouble for you, could you send us the database and eventually the config folder. We will try to find out what went wrong with it.

Kind regards,
Lubomir Velkov
the Telerik team
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 07-Jun-2011 00:00

Hi,

I found the problem. It was not in the database. I apparently haven't carefully copied the project between my workstations. I found the Guid's for the roles where different in the SecurityConfig.config file on both workstations. So I guess some mappings in the file and the database where corrupted. I copied the config file from the working machine and everything works fine now. Thanks for the support.

Posted by Community Admin on 08-Jun-2011 00:00

Hello,

I'm glad everything turned out ok for you. Please do not hesitate to contact us if you have any other problems.

Regards,
Lubomir Velkov
the Telerik team
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

This thread is closed