ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2019 www.aspforums.com. All rights reserved.ASP.Net MVC Error: Cannot open database Login failed for user NT AUTHORITY\SYSTEM<p>Refer.</p> <h1><a class="question-hyperlink" href="https://stackoverflow.com/questions/15557450/login-failed-for-user-nt-authority-anonymous-logon-possible-connection-string">Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON' Possible Connection String Issue?</a></h1>https://www.aspforums.net:443/Threads/209412/ASPNet-MVC-Error-Cannot-open-database-Login-failed-for-user-NT-AUTHORITYSYSTEM/https://www.aspforums.net:443/Threads/209412/ASPNet-MVC-Error-Cannot-open-database-Login-failed-for-user-NT-AUTHORITYSYSTEM/Wed, 25 Apr 2018 03:44:54 GMTASP.Net MVC Error: Cannot open database Login failed for user NT AUTHORITY\SYSTEM<p>I added the line in my web.config</p> <pre class="default prettyprint prettyprinted"><code><span class="tag">&lt;identity</span> <span class="atn">impersonate</span><span class="pun">=</span><span class="atv">"true"</span> <span class="tag">/&gt;<br /> as mentioned in the link but getting the following error</span></code></pre> <h2><em>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: SQL Network Interfaces, error: 50 - Local Database Runtime error occurred. Cannot create an automatic instance. See the Windows Application event log for error details.<br />)</em>&nbsp;</h2>https://www.aspforums.net:443/Threads/209412/ASPNet-MVC-Error-Cannot-open-database-Login-failed-for-user-NT-AUTHORITYSYSTEM/https://www.aspforums.net:443/Threads/209412/ASPNet-MVC-Error-Cannot-open-database-Login-failed-for-user-NT-AUTHORITYSYSTEM/Wed, 25 Apr 2018 04:51:45 GMTASP.Net MVC Error: Cannot open database Login failed for user NT AUTHORITY\SYSTEM<h1 class="header">Refer.</h1> <h1><a class="question-hyperlink" href="https://stackoverflow.com/questions/26248293/sql-network-interfaces-error-50-local-database-runtime-error-occurred-canno">SQL Network Interfaces, error: 50 - Local Database Runtime error occurred. Cannot create an automatic instance</a></h1> <h1 class="header"><a class="title f16" href="https://www.aspforums.net:443/Threads/681340/SystemDataSqlClientSqlException-An-error-has-occurred-while-establishing-a-connection-to-the-server-When-connecting-to-SQL-Server/">System.Data.SqlClient.SqlException: An error has occurred while establishing a connection to the server. When connecting to SQL Server</a></h1> <h1 class="header"><a class="title f16" href="https://www.aspforums.net:443/Threads/188101/An-error-has-occurred-while-establishing-a-connection-to-the-server-When-connecting-to-SQL-Server-2005-this-failure-may-be-caused-by-the-fact-that-under-the-default-settings-SQL-Server-does-not-all/">An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005 this failure may be caused by the fact that under the default settings SQL Server does not all</a></h1> <h1 class="header"><a class="title f16" href="https://www.aspforums.net:443/Threads/295916/A-network-related-or-instance-specific-error-occurred-while-establishing-a-connection-to-SQL-Server/">A network-related or instance-specific error occurred while establishing a connection to SQL Server.</a></h1> <h1 class="header"><a class="title f16" href="https://www.aspforums.net:443/Threads/641137/A-network-related-or-instance-specific-error-occurred-when-connecting-to-remote-server-in-ASPNet/">A network-related or instance-specific error occurred when connecting to remote server in ASP.Net</a></h1> <h1 class="header"><a class="title f16" href="https://www.aspforums.net:443/Threads/151882/Sql-Server-Error-A-network-related-or-instance-specific-error-occurred-while-establishing-a-connection-to-SQL-Server-The-server-was-not-found-or-was-not-accessible/">Sql Server Error: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible</a></h1> <p>&nbsp;</p>https://www.aspforums.net:443/Threads/209412/ASPNet-MVC-Error-Cannot-open-database-Login-failed-for-user-NT-AUTHORITYSYSTEM/https://www.aspforums.net:443/Threads/209412/ASPNet-MVC-Error-Cannot-open-database-Login-failed-for-user-NT-AUTHORITYSYSTEM/Wed, 25 Apr 2018 05:06:56 GMTASP.Net MVC Error: Cannot open database Login failed for user NT AUTHORITY\SYSTEM<p>NT AUTHORITY\SYSTEM does not have access to the database in SQL Server and hence first you need to give it permission from SQL Server.</p> <p>But better would be to access SQL Server using a SQL Server user by specifying Username and Password.</p>https://www.aspforums.net:443/Threads/209412/ASPNet-MVC-Error-Cannot-open-database-Login-failed-for-user-NT-AUTHORITYSYSTEM/https://www.aspforums.net:443/Threads/209412/ASPNet-MVC-Error-Cannot-open-database-Login-failed-for-user-NT-AUTHORITYSYSTEM/Thu, 26 Apr 2018 05:18:22 GMT