October 8th, 2007
PostgreSQL – Npgsql/Windows – Only AuthenticationClearTextPassword and AuthenticationMD5Password
Posted by
Felipe Olivaes in
Postgre SQL, Windows
para resolver esse problema:
CODE:
-
Exception Details: Npgsql.NpgsqlException: Only AuthenticationClearTextPassword and AuthenticationMD5Password supported for now. Received: 4
-
-
Source Error:
-
-
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.
-
-
Stack Trace:
-
-
[NpgsqlException: Only AuthenticationClearTextPassword and AuthenticationMD5Password supported for now. Received: 4]
-
Npgsql.NpgsqlConnector.CheckErrors() +86
-
Npgsql.NpgsqlConnector.Open() +425
-
Npgsql.NpgsqlConnectorPool.GetPooledConnector(NpgsqlConnection Connection) +508
-
Npgsql.NpgsqlConnectorPool.RequestPooledConnectorInternal(NpgsqlConnection Connection) +66
-
Npgsql.NpgsqlConnectorPool.RequestPooledConnector(NpgsqlConnection Connection) +124
-
Npgsql.NpgsqlConnectorPool.RequestConnector(NpgsqlConnection Connection) +54
-
Npgsql.NpgsqlConnection.Open() +243
-
System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +121
-
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +137
-
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) +83
-
contato.TextBox1_PreRender(Object sender, EventArgs e) +136
-
System.Web.UI.Control.OnPreRender(EventArgs e) +2114636
-
System.Web.UI.WebControls.TextBox.OnPreRender(EventArgs e) +11
-
System.Web.UI.Control.PreRenderRecursiveInternal() +77
-
System.Web.UI.Control.PreRenderRecursiveInternal() +161
-
System.Web.UI.Control.PreRenderRecursiveInternal() +161
-
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1360
Edite o arquivo /usr/local/pgsql/data/pg_hba.conf e adicione:
CODE:
-
#host BASE_DE_DADOS USUARIO IP MASK METHOD
-
host BASEDEDADOS USUARIO 0.0.0.0 0.0.0.0 md5
só mudar a autenticação para md5 =-)

on October 28th, 2007 at 4:45 pm
vlw totoro