Views: 1967
Number of votes: 2
Average rating:

Using VppMigrationTool returns exception (Could not load file or assembly..)

This is migth be a bit too specific, but when using the VppMigrationTool to migrate files to EPiServer 7.5 I got this error when trying to connect to the site:


Could not load file or assembly 'file:///C:\Users\pa_hemo\Downloads\EPiServer_7.5_VppMigrationTool\VppMigrationTool_20140107.1\VppMigrationTool.exe' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515) at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)

At the bottom of the exception you get a little hint, but it took me

some minutes to figure it out. The solution is to add the config settings below in to your Machine.config-file:

      <loadFromRemoteSources enabled="true"/>

This did the trick for me :)

You can also change the VppMigrationTool.exe.config  to look like this:

<?xml version="1.0"?>



        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>



        <loadFromRemoteSources enabled="true"/>



PS: You should also be aware that VppMigrationTool removes the config-settings from web.config for the folders you choose migrate.

Feb 17, 2014

Karsten Hofsmo
( By Karsten Hofsmo, 5/22/2014 12:26:42 PM)

Thank you!! :)

( By Ted, 10/30/2014 3:25:02 PM)

Saved me some headache - thanks Henrik!

Please login to comment.