Search found 13 matches

by mrlami
Fri 17 Jul 2009 17:22
Forum: dotConnect for PostgreSQL
Topic: ASP.Net Membership Provider Issue - requiresUniqueEmail
Replies: 7
Views: 3456

Andrey is it available in 4.55?
by mrlami
Sat 28 Mar 2009 02:36
Forum: dotConnect for PostgreSQL
Topic: ASP.Net Membership Provider Issue - requiresUniqueEmail
Replies: 7
Views: 3456

@Shalex...

has this bug been fixed?
by mrlami
Sat 28 Mar 2009 02:34
Forum: dotConnect for PostgreSQL
Topic: Transaction Aborted Error
Replies: 4
Views: 2953

BS is BS even if it's Microsofts way.

There is no reason why a table should be created if its not been used (just my opinion, you guys still rock)
by mrlami
Sat 28 Mar 2009 01:17
Forum: dotConnect for PostgreSQL
Topic: what are the advantages of using dotConnect over npgsql
Replies: 4
Views: 2663

what are the advantages of using dotConnect over npgsql

Aside for support, does DevArt's dotConnect for PostgreSQL have any advanges over it's npgsql?

Is it faster?
by mrlami
Thu 19 Mar 2009 16:49
Forum: dotConnect for PostgreSQL
Topic: membership tables
Replies: 3
Views: 1750

After some research I found out you guys use the same schema as MSFT.

- http://superpatrick.files.wordpress.com ... pdated.png
- http://webthinker.wordpress.com/2007/11 ... ip-schema/

npgsql implements theirs in a different way that I thought was better so I assumed that was what microsoft was using (duh)

- http://dev.nauck-it.de/aspsqlprovider/b ... Schema.sql (THEY USE JUST ONE TABLE to store all user information which I thought made sense)

Is there any advantage of making this 2 seperate tables?
by mrlami
Wed 18 Mar 2009 22:19
Forum: dotConnect for PostgreSQL
Topic: membership tables
Replies: 3
Views: 1750

membership tables

Is there a reason why Devart used 2 different tables to hold user information?
by mrlami
Thu 22 Jan 2009 16:43
Forum: dotConnect for PostgreSQL
Topic: Does anyone run PostgreSQL on windows
Replies: 1
Views: 1917

Does anyone run PostgreSQL on windows

Does anyone run PostgreSQL on windows in a production environment?

If so:

- what version of windows?
- how large is the database?
- does windows hold up well?
by mrlami
Thu 01 Jan 2009 17:56
Forum: dotConnect for PostgreSQL
Topic: MEMBERSHIP FRAMEWORK DUPLICATE EMAIL PARAMETER
Replies: 3
Views: 2294

@JORGEMAL... solution via URL below might be helpful

http://devart.com/forums/viewtopic.php?p=41739#41739
by mrlami
Thu 01 Jan 2009 17:48
Forum: dotConnect for PostgreSQL
Topic: ASP.Net Membership Provider Issue - requiresUniqueEmail
Replies: 7
Views: 3456

Thought I'll post a workaround I used for this. It cost an extra hit to the database, but I don't think it's overkill.

Use below code before calling Membership.CreateUser to check if a duplicate email exists pending the time this bug is fixed.

Code: Select all

public static bool CheckUserEmail(string useremail)
{
    string sql = "SELECT email FROM aspnet_membership WHERE email='" + useremail + "';";

    using (PgSqlConnection connection = ConnectionManager.GetConnection())
    {
        using (PgSqlCommand command = new PgSqlCommand(sql, connection))
        {
            command.CommandType = CommandType.Text;

            try
            {
                string rec = command.ExecuteScalar().ToString();

                if (rec == useremail)
                    return true;
                else
                    return false;
            }
            catch (Exception ex)
            {
                return false;
                throw ex;
            }
        }
    }
}
by mrlami
Sun 28 Dec 2008 22:58
Forum: dotConnect for PostgreSQL
Topic: Transaction Aborted Error
Replies: 4
Views: 2953

Found Solution:

The profiles table (aspnet_profiles) seems to have to be present in the database for Membership.DeleteUser() to work.

I'm not sure if to call this a bug or not, but I see no reason why the DeleteUser method should not work unless the aspnet_profiles table is present (especially when one is not using it)


Advice: Devart should release some of it's source code (@ least the Membership Provider portion) to it's customers and maybe even a select group of the public that will help facilitate adding features/fixing bugs (:wink: let's see how far i'll get with pushing this one).
by mrlami
Sun 28 Dec 2008 22:05
Forum: dotConnect for PostgreSQL
Topic: Transaction Aborted Error
Replies: 4
Views: 2953

Transaction Aborted Error

I get this error when I try to delete a user using the Membership.DeleteUser("xxx");

Code: Select all

Server Error in '/' Application.
current transaction is aborted, commands ignored until end of transaction block 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: Devart.Data.PostgreSql.PgSqlException: current transaction is aborted, commands ignored until end of transaction block

Source Error: 

Line 23:         {
Line 24:             //Membership.CreateUser("g", "lami123");
Line 25:             Membership.DeleteUser("g");
Line 26: 
Line 27: 

Stack Trace:

[PgSqlException (0x80004005): current transaction is aborted, commands ignored until end of transaction block]
   Devart.Common.Web.Providers.DbMembershipProvider.DeleteUser(String username, Boolean deleteAllRelatedData) +144

[ProviderException: An exception occurred. Please contact your administrator.]
   Devart.Common.Web.Providers.DbMembershipProvider.DeleteUser(String username, Boolean deleteAllRelatedData) +215
   System.Web.Security.Membership.DeleteUser(String username) +75

Someone please help. Thanks!
by mrlami
Sat 27 Dec 2008 23:58
Forum: dotConnect for PostgreSQL
Topic: ASP.Net Membership Provider Issue - requiresUniqueEmail
Replies: 7
Views: 3456

ASP.Net Membership Provider Issue - requiresUniqueEmail

The requiresUniqueEmail option when set to true (as in below) does not seem to work. The provider keeps creating accounts with duplicate emails even when this option it set to true in the web.config file.

Code: Select all

requiresUniqueEmail="true"
Is this a bug, or is this option just not allowed with DevArt's PostgreSQL Memberhip provider?