Samples and SDK for SF4
I have project with custom membership provider.
Can you prepare some samples for custom membership/role providers for SF4 and add them to starter kit?
For example: separate filestorage for users and roles (users.txt roles.txt)
Now we have problems with MembershipProvider and MembershipDataProvider:
UI: project contains simple single page and standart loging widget from SF4
file: web.config
<membership defaultProvider="Default">file: SecurityConfig.config
<providers>
<clear/>
<add name="Default" type="Telerik.Sitefinity.Security.Data.SitefinityMembershipProvider, Telerik.Sitefinity"/>
<add name="Dummy" type="XXX.Security.DummyMembershipProviderSF4, XXX.Security"/>
</providers>
</membership>
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. |
Telerik.Sitefinity.Data.ManagerBase`1..ctor(String providerName, String transactionName) +131
Telerik.Sitefinity.Security.UserManager..ctor(String providerName, String transactionName) +8
[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeMethodHandle._InvokeConstructor(IRuntimeMethodInfo method, Object[] args, SignatureStruct& signature, RuntimeType declaringType) +0
System.RuntimeMethodHandle.InvokeConstructor(IRuntimeMethodInfo method, Object[] args, SignatureStruct signature, RuntimeType declaringType) +15
System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +281
Telerik.Sitefinity.Data.ManagerBase`1.GetManager(String providerName, String transactionName) +614
Telerik.Sitefinity.Security.SecurityManager.AuthenticateUser(String membershipProviderName, String userName, String password, Boolean persistent, User& user) +26
Telerik.Sitefinity.Security.Web.UI.LoginForm.LoginForm_Authenticate(Object sender, AuthenticateEventArgs e) +131
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
Hi Vik,
Could you please check this forum post - http://www.sitefinity.com/devnet/forums/sitefinity-4-x/bugs-issues/object-reference-not-set-to-an-instance-of-an-object.aspx.
I believe that this is the problem.