Posted on: 11/19/2014 10:45:26 AM | Views : 464

Initially I developed an application (winforms/c#) using VS 2013: framework 4.5, SQL Server 2012 and EntityFramework 6, but due a change on the user clients requirements and scenario, the application was migrated to: framework 4.0.3, LocalDB 2012 and EntityFramework 6.
To migrate projects frameworks I just change the targeted version, re-installed references (EntityFramework included) and checked the app.config.
And to migrate mdfs, in VS, created a Data Connection, using SQL Server DataProvider, ServerName (LocalDB)\v11.0, WindowsAuthentication and Attached the database file, that showed me a warning that it will be affecting the database, and then the connection was created, this connection was used to create the ADO Entity Data Models.
To deploy on clients I used a WIX project.
When I deploy on a machine that has the Framework 4.0.3 installed, the application crashes with the error:
"Go to the complete details ...