Cannot use msdeploy to sync 2 websites - ERROR_FRAMEWORK_VERSIONS_DO_NOT_MATCH

9,306

Solution 1

My MS Deploy version were different, my source I was using V2 and my destination was using V3.

Solution 2

This worked for me:

"I checked the msdeploy.exe.config configuration file and sure enough, the v4.0 runtime was listed first:

A work around to the issue is to move the v2.0.50727 above the v4.0 in the configuration file to force Web Deploy to use the v2.0 CLR."

Taken from:

https://blogs.msdn.microsoft.com/ericparvin/2015/04/03/error_framework_versions_do_not_match/#comment-305

Share:
9,306

Related videos on Youtube

JustEngland
Author by

JustEngland

Updated on September 18, 2022

Comments

  • JustEngland
    JustEngland over 1 year

    I am trying to use the msdeploy v3.0 to sync an iis website. The site is using .net 4.5 and I am having trouble syncing a brand new server.

    Step 1) Create a backup of the website. It looks like it works fine.

    msdeploy -verb:sync -source:apphostconfig="XXX",computername=XXX -dest:package=c:\temp\test2.zip,encryptPassword=[pass]
    

    Step 2) Run the deployment package on the destination server. Fails!

    msdeploy -verb:sync -source:package=C:\temp\test2.zip,encryptPassword=[pass] -dest:apphostconfig="XXX"
    

    I get the following error when I execute step 2.

    Error Message

    ERROR_FRAMEWORK_VERSIONS_DO_NOT_MATCH More Information: The versions of the .NET Framework Configuration Provider (mac hineConfig64) are different on the source (2.0.50727.5456) and destination (4.0) . Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_FRAMEWORK_ VERSIONS_DO_NOT_MATCH. Error count: 1.

  • slm
    slm about 11 years
    Welcome to Server Fault! Generally we like answers on the site to be able to stand on their own - Links are great, but if that link ever breaks the answer should have enough information to still be helpful. Please consider editing your answer to include more detail. See the FAQ for more info.
  • Redoman
    Redoman almost 6 years
    in the origin or destination server?