Jay85
16-12-2009, 09:08
Buongiorno a tutti,ho utli ho il seguente problema:
errori sulle connessioni al database ( i db sono su app_data una cartella che viene creata automaticamente) e li l'errore che mi da è il seguente:
[A network-related or instance-specific error occurred while establishing a connection 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)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection 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)
La stringa di connessione che utilizzo è questa:
<add name="Reserved" connectionString="Data Source=./SQLEXPRESS;Initial Catalog= App_Data\reserved.mdf;Integrated Security=True;"
providerName="System.Data.SqlClient" />
<add name="aspnet" connectionString="Data Source=./SQLEXPRESS;Initial Catalog = App_Data\ASPNETDB.MDF;Integrated Security=True;"
providerName="System.Data.SqlClient" />
Sono proprio incasinata anche perchè vedo che moltissimi hanno questo problema... e non trovo una soluzione definitiva
errori sulle connessioni al database ( i db sono su app_data una cartella che viene creata automaticamente) e li l'errore che mi da è il seguente:
[A network-related or instance-specific error occurred while establishing a connection 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)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection 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)
La stringa di connessione che utilizzo è questa:
<add name="Reserved" connectionString="Data Source=./SQLEXPRESS;Initial Catalog= App_Data\reserved.mdf;Integrated Security=True;"
providerName="System.Data.SqlClient" />
<add name="aspnet" connectionString="Data Source=./SQLEXPRESS;Initial Catalog = App_Data\ASPNETDB.MDF;Integrated Security=True;"
providerName="System.Data.SqlClient" />
Sono proprio incasinata anche perchè vedo che moltissimi hanno questo problema... e non trovo una soluzione definitiva