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);
}
exception Erro: the underlying provider failed on open
-
- Posts: 1
- Joined: Sat 07 Jul 2012 16:38
Re: exception Erro: the underlying provider failed on open
"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?