title: .NET not detecting any SQL Server instances
body: <p>I have been developing a C# / SQL Server application on a Windows 8.1 device for a while, using .NET 4.5.1 and SQL Server 2012 Express. It all worked flawless. Recently, Visual Studio 2015 has been released and I decided to upgrade. I also decided to upgrade my SQL Server 2012 as well, so I backed everything up, uninstalled it and installed SQL Server 2014 Express. After configuring everything and restoring the database backups everything still worked locally as the database connection data was still present in the stored application settings.</p>
  
  <p>When I tested the application on another device I found out that it could no longer connect to the SQL Server instance and it couldn't detect it either using</p>
  
  <pre><code>System.Data.DataTable instances = SqlDataSourceEnumerator.Instance.GetDataSources();
  </code></pre>
  
  <p>The application couldn't detect the SQL Server instance on my development machine either, which I think is rather strange as it's running <em>local</em>. Several other devices could, however, detect the SQL Server so I don't think it's a firewall related program. The SQL engine service and the browser services were both active.</p>
  
  <p>I decided to upgrade to Windows 10, reset it (clean install, did not install any SQL Server programs) and run my application again, as there are other computers in my network running SQL Server, hoping it would detect those. It didn't. The <code>GetDataSources()</code> method returns an empty <code>DataTable</code> within a split second, while other devices take a few seconds to detect the instances and return a correct list.</p>
  
  <p>Even more stupid is that ODBC Data Source Administrator <em>does</em> detect those network instances, making me think it is a .NET related program.</p>
  
  <p><strong>Summary:</strong> two devices do not detect <em>any</em> SQL Server instances (even local), while the other devices in the network do.</p>