This project has moved and is read-only. For the latest updates, please go here.

Could not load file or assembly 'Microsoft.ResourceManagement, Version=4.1.3451.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

Sep 4, 2015 at 2:34 AM
To All,

Appreciate the great work on the new client.

I am experiencing the following issue after creating a test console app, running nuget on the client, and running a quick GetResourceByKey.

I receive the following inner exception on client constructor:

Could not load file or assembly 'Microsoft.ResourceManagement, Version=4.1.3451.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.":"Microsoft.ResourceManagement, Version=4.1.3451.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35

The code snippet is the following:

string personID = "96d4dade-8a76-459d-a70f-d68010043c7c";
ResourceManagementClient client = new ResourceManagementClient(); //EXCEPTION HERE

client.GetResourceByKey("Person", "ObjectID", personID);

We are using version 4.1.3496.0.

Thanks,
Bryan
Sep 4, 2015 at 4:34 PM
To All,

Just a quick update, I was able to fix this issue by recompiling the client source code with version 4.1.3496.0, removing the references to the Lithnet client in the test app, adding back the newly compiled version as a reference, and then rebuilding the Test console application.

I also attempted binding redirection to version 3496 but that did not work either. Looking back at notes, I may have had this problem with the old FIM client as well. Always required a recompile.

Look forwarding to hearing any updates when time permits.

Thanks,
Bryan