I have a 32-bit application that was developed using SQL Server 2008 Express SP2, since we are moving to Windows 10 we are going to be using SQL Server 2016 Express and I get these errors when I start the application:
Message:Could not load file or assembly 'Microsoft.SqlServer.ConnectionInfo, Version=10.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The system cannot find the file specified.
I fixed these errors by installing the CLR Types and SMO's for 32-bit 2008 on my machine. I also noticed in Visual Studio that my references to Microsoft.SqlServer.ConnectionInfo, Microsoft.SqlServer.Management.Sdk.Sfc, and Microsoft.SqlServer.Smo updated their paths with the new SQL Server (before the 2008 SMO install) but I still got this error.
What can I do in the application to avoid this error? Is it just updating the references?