By Carmel ShvartzmanIn this tutorial we'll learn how to fix the error "Could not load file or assembly 'Microsoft.Data.Services, Version=188.8.131.52'" in an Asp.Net MVC application.
This error is thrown in case of a reference in your application, that points to the 184.108.40.206 version of the Microsoft.Data.Services assembly.
The error appears as this :
First i thought that the problem was in the web.config:
<assemblyIdentity name="Microsoft.Data.Services" publicKeyToken="31bf3856ad364e35" />
<bindingRedirect oldVersion="220.127.116.11-18.104.22.168" newVersion="22.214.171.124" />
But as can be seen, there was explicitly stated to use the version 126.96.36.199 of the assembly.
Then i remembered that at the creation of the data Service, there is a definition of the version of the Microsoft.Data.Services assembly to be loaded:
Just change the version to the one you need : 188.8.131.52, & that's all!!
כתב: כרמל שוורצמן