private void ConfigureAuthProviders()
        {
            const string applicationName = "NaturtypekartTest";

            if (membershipProvider == null)
            {
                membershipProvider = ConfigurateMembershipProvider(applicationName);
            }
            if (roleProvider == null)
            {
                roleProvider = ConfigurateRoleProvider(applicationName);
            }
        }
        private static ArtsdatabankenMembershipProvider ConfigurateMembershipProvider(string applicationName)
        {
            var membershipProvider = new ArtsdatabankenMembershipProvider {
                ApplicationName = applicationName
            };

            var config = new NameValueCollection
            {
                { "applicationName", applicationName },
                { "connectionStringName", ConnectionstringName },
                { "enablePasswordRetrieval", "true" },
                { "enablePasswordReset", "true" },
                { "passwordFormat", "Clear" },
                { "requiresQuestionAndAnswer", "true" },
                { "writeExceptionsToEventLog", "false" }
            };

            membershipProvider.Initialize("AspNetSqlMembershipProvider", config);
            return(membershipProvider);
        }