1
votes

I developed a WPF Application with C# and LocalDB (.mdf file). It works fine on my laptop (win10, 64bit) but it keeps showing the same error when I tried to install it on another PC (win7, 32bit). I installed 4.5.2 .Net framework, SQL server express LocalDB 2012 & SQL server express 2014. Still the same error keeps on showing ! I checked many other Questions with the same issue yet the solutions didn't work !

Also this is my first time with WPF & C# !

Problem signature: CLR20r3

Problem signature:‎ 01: CET_staff.exe

Problem signature:‎ 02: 1.0.0.0

Problem signature:‎ 03: 58737888

Problem signature: 04: System.Data

Problem signature:‎ 05: 4.6.1590.0

Problem signature:‎ 06: 5787ef07

Problem signature:‎ 07: 1d3b

Problem signature:‎ 08: 27

Problem signature:‎ 09: System.Data.SqlClient.Sql

2
You need to add error handling / loggingErikEJ
maybe this has something to do with Arabic language?Mat
@Mat It's true the application contains Arabic characters.ArwaSh
This is just because the application is built in non unicode language fonts and you are running the system on unicode fonts. change your default non unicode fonts to arabic by going in regional settings advanced tab in control panel. That will solve your problem. -> Answer from the duplicate questionMat

2 Answers

0
votes

This can happen if you have a wrong target framework. For me Client Profile sometimes breaks it. Please check it on your project properties.

enter image description here

There are also some other causes: http://hasstoppedworking.com/fix-clr20r3-event-issues/

You can also try to run it on other machines/OS to make it more clear what causes the Error. Most likely Win7...

-1
votes

I used localDB always with .NET Framework above 4.0 which is not 4.0 because I also experienced this.

You can check this blog from Microsoft but must read carefully the blog says 4.0.2 enables localdb, not 4.0

In other word, it's simply impossible to use localdb with .NET Framework 4.0

https://blogs.msdn.microsoft.com/sqlexpress/2011/10/27/net-framework-4-now-supports-localdb/

You can set through prerequisites on Publish menu so that all clients computer to be updated to proper version for localdb.

Hope this helps...