I am using Visual Studio 2015
, C#
and database SQL Server Azure
and developing a Windows Forms
project.
Everything works perfectly, except that when I spend some time without running my application for testing, I get the error:
Network-specific or instance-specific error when connecting to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) --- >
System.ComponentModel.Win32Exception (0x80004005)
: The network path was not found
The error appears on the line:
private void Form1_Load(object sender, EventArgs e)
{
-> this.usuarioTableAdapter.Fill(this.estoqueDataSet.Usuario);
}
Then I need to open Server Explorer
, click on my Data Connection
and click on the refresh
button there it will be normal again.
I am new to both Visual Studio
and Azure
and want to know if this is normal, if there is a risk of occurring when my client is using my program and if you have to "disable" this shutdown.
** Here is my firewall configuration: ** link