Custom membershipprovider without Guid
I'm using Sitefinity 4.1. I'm writing my own custom asp.net membership provider with an existing database. This existing database doesn't have a Guid for identifying each record. I just implemented the GetallUsers method. When I return an empty MembershipUserCollection it works. If return a filled MembershipUserCollection I get an exception on the login page:
|
Hello El Barto,
Yes, we expect guids. You can create some Guid mapper in your custom database, so you can use your users with Sitefinity.
Kind regards,
Ivan Dimitrov
the Telerik team
Hi Ivan,
Thanks for the response.
I'm sure Telerik has it's reasons for choosing only to support Guid's but it limits the flexibility of the membershipprovider. I think that's unfortunate.
Regards,
Bart
Hi El Barto,
In the SqlMembershipProvider the unique identifier is also supposed to be a guid or you should cast the value to guid.
Greetings,
Ivan Dimitrov
the Telerik team