1

Closed

ExtendedMongoMembership.Sample not working

description

I'm seeing some issues with the sample code not working

1) HomeController - CreateRole

This code should check if the role exists before creating - and should look like this:
        if (!Roles.RoleExists("Admin2"))
            Roles.CreateRole("Admin2");
2)
If I click 'Register' in the web page I get this exception from InitializeSimpleMembership.cs at
context.Database.Exist()

"An error occurred while getting provider information from the database. This can be caused by Entity Framework using an incorrect connection string. Check the inner exceptions for details and ensure that the connection string is correct."
Closed Mar 27, 2013 at 8:53 PM by F0rc0sigan
I have uplodaed new release, so now evverything must work fine.

BTW: I deleted InitializeMembership filter b/c we dont need initialize db as we use mongodb.

comments

bluee wrote Mar 27, 2013 at 5:54 PM

It seems only to be a problem with the current release 0.9 and not the trunk code.

F0rc0sigan wrote Mar 27, 2013 at 6:37 PM

Thanks very much for help in finding bugs. Will fix it asap.