Thursday, June 23, 2016

Visual Studio 2015 error mscorlib mismatch when Entity Framework runs transformation

I was following the instructions on this page Databinding with WPF when I ran into an issue at the Updating code generation for data binding step.  I was getting an mscorlib version mismatch error.  I could not compile the project.

I had noticed that changing ICollection<T> to ObservableCollection never did the regeneration of the entity code.  Running 'Run Custom Tool' on the .tt file also did not work.

After some searching I came across this page mscorlib mismatch when Entity Framework runs transformations.  I installed the vs14-kb3151378.exe updated mentioned in the comments section. After the install and reopening my solution in VS 2015, the mscorlib error was gone.  The project would successfully compile.

Some posted in the comments about changing the SQL server authentication off of Integrated but I know for many of us that is very much undesirable.

If you run into this issue and have not installed KB3151378, if you are a candidate for the install, I recommend it as it may solve the issue for you too.

5 comments:

essay writing service reviews said...

This post is very useful for us. Because we have a lot o tips and tricks from this post. Thank you for this amazing post share.

tips for writing a research paper said...

Nice article thanks for sharing.

Monnika Jacob said...

I installed Visual Studio 15, everything works good but I don't see ASP.net. I've tried reinstalling it but see nothing new. Buy Assignment Online

John Hardy said...

This information is very helpful for us. I really apricate your good effort in this article. Thanks for sharing this article. Now it's time to avail 1 litre water bottle for more information.

KSJWEBSITE said...

check article : Here Are the Rocks Pirates You Must Know!
check article : Biography Of Song Joong-ki
check article : 5 Typical Foods Of Saudi Arabia, Known For Their Delicious And Unique Flavours
check article : The History Of Arsenal Football Club's Logo
check article : The Meaning And History Of The Bulgarian Flag
check article : 10 Typical Food From Montenegro
check article : 10 Jutsu in Naruto that are Strong but Wasteful of Chakra!
check article : 5 Typical London Foods That You Can Find A Lot While Visiting

New beginner's guide to PowerShell on my GitHub page

 I created a beginner's guide to PowerShell here: https://github.com/aamjohns/Powershell_Guide/blob/main/README.md I hope it helps someo...