title: error 50 - Local Database Runtime error occurred and ASP.NET MVC
body: <p><img src="https://i.stack.imgur.com/x8fN8.png" alt="enter image description here">This is 2nd day I'm spending on this sql server problem! long story short, I have downloaded/installed sql server 2014 express version on my windows 8.1 operating system. sql server works fine however when I get in it and create tables or etc, when I run asp.net (mvc 4) and click on login page or register page it throws following error:</p>
  
  <p><em>error: 50 - Local Database Runtime error occurred. Cannot create an automatic instance. See the Windows Application event log for error details.</em></p>
  
  <p>I have searched in stackoveflow and also msdn, few other forums but did not find a specific and solution to nail this down.</p>
  
  <p>on my machine I have:</p>
  
  <p><strong>SQL SERVER (MSSQLSERVER) service running (Automatic)
  Microsoft LocalDB is installed</strong></p>
  
  <p>However, 
  SQL Server Browser stopped
  SQL Server Agent   stopped</p>
  
  <p>every time I am trying to restart or start them I get this message:</p>
  
  <p><em>The service cannot be started, either because it is disabled or because it has no enabled device associated with it[0x80070422]</em></p>
  
  <p>I also tried this solution but it didn't help. please see this URL</p>
  
  <p><a href="http://www.aspneter.com/2013/08/error-50-local-database-runtime-error-occurred/" rel="nofollow noreferrer">http://www.aspneter.com/2013/08/error-50-local-database-runtime-error-occurred/</a></p>
  
  <p>Can this be something in web.config?</p>
  
  <p>any help will be appreciated greatly.</p>
  
  <p>Thanks.
  amit</p>