F
F
fiskoner2020-03-09 17:48:15
PostgreSQL
fiskoner, 2020-03-09 17:48:15

Error in pgsql connection string?

I have a connection string:

"Server = 127.0.0.1; Port = 5432; Database = WMIdb; Username = postgres; Password = Artem13;"

(formed in the c# code, password, port, server ip, database name and password seem to be correct)
When connecting to the database using Npgsql, postgres itself gives an error:
Npgsql.PostgresException: 28P01: ������������ "postgres" �� ������ �������� ����������� (�� ������)

Stack trace

[PostgresException (0x80004005): 28P01: ������������ "postgres" �� ������ �������� ����������� (�� ������)]
Npgsql.<<DoReadMessage>g__ReadMessageLong|0>d.MoveNext() in C:\projects\npgsql\src\Npgsql\NpgsqlConnector.cs:933
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +27
Npgsql.<<DoReadMessage>g__ReadMessageLong|0>d.MoveNext() in C:\projects\npgsql\src\Npgsql\NpgsqlConnector.cs:973
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +102
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +64
System.Threading.Tasks.ValueTask`1.get_Result() +121
Npgsql.<AuthenticateMD5>d__3.MoveNext() in C:\projects\npgsql\src\Npgsql\NpgsqlConnector.Auth.cs:218
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +102
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +64
Npgsql.<Authenticate>d__0.MoveNext() in C:\projects\npgsql\src\Npgsql\NpgsqlConnector.Auth.cs:34
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +102
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +64
Npgsql.<Open>d__148.MoveNext() in C:\projects\npgsql\src\Npgsql\NpgsqlConnector.cs:423
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +102
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +64
Npgsql.<AllocateLong>d__28.MoveNext() in C:\projects\npgsql\src\Npgsql\ConnectorPool.cs:249
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +102
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +64
System.Threading.Tasks.ValueTask`1.get_Result() +121
Npgsql.<<Open>g__OpenLong|0>d.MoveNext() in C:\projects\npgsql\src\Npgsql\NpgsqlConnection.cs:297
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +102
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +64
Npgsql.NpgsqlConnection.Open() in C:\projects\npgsql\src\Npgsql\NpgsqlConnection.cs:119
Vin_decode.Models.pgSQL_class.OpenConnection() in C:\Users\Artem\Documents\projects\Vin_decode\Models\pgSQL_class.cs:51
Vin_decode.Enter_Wmi.submitWmiButton_Click(Object sender, EventArgs e) in C:\Users\Artem\Documents\projects\Vin_decode\Enter_Wmi.aspx.cs:23
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +109
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +31
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3470

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question