Note that there are some explanatory texts on larger screens.

plurals
  1. POado.net entity framework 4.1 error 40 on database initialization
    text
    copied!<p>i'm using ado.net entity framework 4.1 to connect to a sql server 2008 r2 64 bits instance located on my computer. but when i try to initialize the connection i get the following exception:</p> <blockquote> <p>{"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)"}</p> </blockquote> <p>the sql service for that instance is running, also sql browser. added exceptions to 1433 port and sql browser. in sql server configuration manager, shared memory is enabled, also named pipes and tcp/ip.</p> <p>these are my app.config connection string: using a user and password:</p> <pre><code> &lt;connectionStrings&gt; &lt;add name="DbTerminalContext" connectionString="Data Source=URIEL\SQLIT64;Initial Catalog=IFDB;User Id=sa;Password=password;MultipleActiveResultSets=True" providerName="System.Data.SqlClient" /&gt; </code></pre> <p></p> <p>this is using windows identity:</p> <pre><code>&lt;add name="DbTerminalContext" connectionString="Data Source=URIEL\SQLIT64;Initial Catalog=IFDB;Trusted_Connection=True;MultipleActiveResultSets=True" providerName="System.Data.SqlClient" /&gt; </code></pre> <p>i tried using insted of URIEL, .\SQLIT64, also localhost\SQLIT64 and i simply cannot connect.</p> <p>i've searched and tried various solutions found in here and in other places. no solution whatsoever. so can anyone help me? thanks in advance</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload