I am trying to connect to my postgres database from a project in c#, i have this project working using a MySQL option, now i am using Npgsql and don’t know it well and I am having trouble with figuring out what is it.
This is the error it gaves me:
at Npgsql.NpgsqlCommand.CheckAndGetConnection( at Npgsql.NpgsqlCommand. <ExecuteReader>d_119.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndD ebuggerNotification(Task task) at Npgsql.NpgsqlCommand.ExecuteReader(CommandBehavior behavior) at Practica4. 1.Login Form.LoginButton_Click(Object sender, EventArgs e) in C:\Users\musaf\OneDrive\Desktop\Tienda DeDiscos TBD_NCG\LoginFor m.cs:line 52
I’ve tried to change the parameter to the conection thinking I’ve made a mistake but I’m pretty sure I am not
Deig0l is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.