exception Erro: the underlying provider failed on open

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for PostgreSQL
Post Reply
mauricio_12_85
Posts: 1
Joined: Sat 07 Jul 2012 16:38

exception Erro: the underlying provider failed on open

Post by mauricio_12_85 » Sat 07 Jul 2012 17:52

exception Erro: the underlying provider failed on open on code

private void button1_Click(object sender, EventArgs e)
{
try
{

TESTEEntities obj = new TESTEEntities();

user objuser = new user();

objuser.nome = textBox1.Text;

obj.AddTouser(objuser);
obj.SaveChanges();
}
catch ( Exception ex)
{
MessageBox.Show(ex.Message);
}

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: exception Erro: the underlying provider failed on open

Post by Shalex » Mon 09 Jul 2012 12:44

"Underlying provider failed on open" is a general high-level exception which doesn't tell us about the actual problem. Could you please run your application in the debug mode and post here the exact text of the inner exception with its call stack?

Post Reply