Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Henrik Molnes
Feb 17, 2014
  3361
(2 votes)

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:

Capture

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:

<configuration>
   <runtime>
      <loadFromRemoteSources enabled="true"/>
   </runtime>
</configuration>

This did the trick for me :)

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

<?xml version="1.0"?>

<configuration>

   <startup>

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

   </startup>

   <runtime>        

        <loadFromRemoteSources enabled="true"/>

   </runtime>

</configuration>

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

Feb 17, 2014

Comments

Karsten Hofsmo
Karsten Hofsmo May 22, 2014 12:26 PM

Thank you!! :)

Ted
Ted Oct 30, 2014 03:25 PM

Saved me some headache - thanks Henrik!

Please login to comment.
Latest blogs
Solving the mystery of high memory usage

Sometimes, my work is easy, the problem could be resolved with one look (when I’m lucky enough to look at where it needs to be looked, just like th...

Quan Mai | Apr 22, 2024 | Syndicated blog

Search & Navigation reporting improvements

From version 16.1.0 there are some updates on the statistics pages: Add pagination to search phrase list Allows choosing a custom date range to get...

Phong | Apr 22, 2024

Optimizely and the never-ending story of the missing globe!

I've worked with Optimizely CMS for 14 years, and there are two things I'm obsessed with: Link validation and the globe that keeps disappearing on...

Tomas Hensrud Gulla | Apr 18, 2024 | Syndicated blog

Visitor Groups Usage Report For Optimizely CMS 12

This add-on offers detailed information on how visitor groups are used and how effective they are within Optimizely CMS. Editors can monitor and...

Adnan Zameer | Apr 18, 2024 | Syndicated blog