pra não esquecer…

outubro 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 [/code]

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[/code]

só mudar a autenticação para md5 =-)

One Response to ' PostgreSQL – Npgsql/Windows – Only AuthenticationClearTextPassword and AuthenticationMD5Password '

Subscribe to comments with RSS or TrackBack to ' PostgreSQL – Npgsql/Windows – Only AuthenticationClearTextPassword and AuthenticationMD5Password '.

  1. rafael said,

    on outubro 28th, 2007 at 4:45 pm

    vlw totoro 😀

Leave a reply


 



nuvem de tags:

24 horas acentuação Apache bash benchmark bios boot celular centos charset comando console Download esxi Firebird firefox http importação intel ipod kinghost legenda Linux lost mod_deflate msn mssql MySQL owner Padel PHP placa mãe portabilidade Postgre SQL recovery root password rewrite shell sinuca sql server svn temporada completa veronica mars vmware Windows ícones