Daljeet Dhaliwal
Daljeet Dhaliwal

Reputation: 55

FileLoadException was unhandled

i am working on a web service in MVC4 but evrytime i try to run the code i get this type of error.

"An exception of type 'System.IO.FileLoadException' occurred in Microsoft.WindowsAzure.Storage.dll but was not handled in user code

Additional information: Could not load file or assembly 'Microsoft.Data.Services.Client, Version=5.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)"

Note: i have already set my "COPY LOCAL" property to true but nothing has changed

Upvotes: 1

Views: 3975

Answers (1)

jgauffin
jgauffin

Reputation: 101150

That error typically means that a assembly that you uses are tying to use another version than the one that was loaded into your appdomain.

The error is usually resolved by adding an <assemblyBinding> to your web.config. Look through all config files that you can find in your solution. One of them probably has an assembly binding. Copy that binding to the web project.

The cause can also be that you have an <assemblyBinding>, but it directs to an incorrect version.

Upvotes: 2

Related Questions