Page 1 of 1
v3 to v4 data upgrade - Hostpolicy.dll missing
Posted: Fri 06 Dec 2024 2:14 am
by BelloWeather
Hi all
Trying to upgrade from v3 to v4 on Windows. Have upgraded dotnet to 8 as requested. Trying to run the migration tool to upgrade data from v3 to v4 and getting this response:
A fatal error was encountered. The library 'hostpolicy.dll' was not found in c://program files/dotnet
The program failed to run as a self contained app
It them goes on to say that it ran as a self contained app as a json file was missing, but then failed because the hostpolicy was missing.
Computer restarted, updated...tried everything but can't get beyond this part of the upgrade. Am I the only one? Did a search here and couldn't see the same problem for anyone else. Advice appreciated

Re: v3 to v4 data upgrade - Hostpolicy.dll missing
Posted: Fri 06 Dec 2024 8:15 am
by water01
In the MXDiags folder there should be a file that starts Migratexxxxxxxxxxxxx.txt could you post that as it might give a clue as to what is going on.
In a command window what does "dotnet --info" give you?
Re: v3 to v4 data upgrade - Hostpolicy.dll missing
Posted: Sun 08 Dec 2024 7:42 am
by nickb
I've got this problem too. Here's the error I'm seeing:
Code: Select all
A fatal error was encountered. The library 'hostpolicy.dll' required to execute the application was not found in 'C:\Program Files\dotnet\'.
Failed to run as a self-contained app.
- The application was run as a self-contained app because 'C:\CumulusMX\MigrateData3to4.runtimeconfig.json' was not found.
- If this should be a framework-dependent app, add the 'C:\CumulusMX\MigrateData3to4.runtimeconfig.json' file and specify the appropriate framework.
There's no Migratexxxxxxxx.txt file in my MXdiags folder.
dotnet --info says I'm on version 8.0.11
Code: Select all
Host:
Version: 8.0.11
Architecture: x64
Commit: 9cb3b725e3
RID: win-x64
.NET SDKs installed:
No SDKs were found.
.NET runtimes installed:
Microsoft.NETCore.App 8.0.11 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Other architectures found:
None
Environment variables:
Not set
global.json file:
Not found
Any help with this would be great - thanks heaps
Re: v3 to v4 data upgrade - Hostpolicy.dll missing
Posted: Sun 08 Dec 2024 7:48 am
by freddie
Is the runtimeconfig.json file mentioned in the error message present?
Re: v3 to v4 data upgrade - Hostpolicy.dll missing
Posted: Sun 08 Dec 2024 8:04 am
by nickb
No, I can't see MigrateData3to4.runtimeconfig.json which is in the error.
The only runtimeconfig.json file is called CumulusMX.runtimeconfig.json.
Re: v3 to v4 data upgrade - Hostpolicy.dll missing
Posted: Sun 08 Dec 2024 8:31 am
by Juan Maria Vilaro
I am exactly the same as you, I wanted to install the new version 4 from version 3, but when I run MigrateData I don't get any response, not even what error I have.
Re: v3 to v4 data upgrade - Hostpolicy.dll missing
Posted: Sun 08 Dec 2024 9:19 am
by HansR
@Mark: should MigrateData3to4 have been recompiled (like the other auxiliary programs) with version 4.3?
Re: v3 to v4 data upgrade - Hostpolicy.dll missing
Posted: Sun 08 Dec 2024 1:12 pm
by mcrossley
I don't think so, but I'll check. The missing JSON doesn't sound right though
Re: v3 to v4 data upgrade - Hostpolicy.dll missing
Posted: Sun 08 Dec 2024 1:41 pm
by mcrossley
Please add the attached files to your Cumulus MX folder and try again.
Re: v3 to v4 data upgrade - Hostpolicy.dll missing
Posted: Sun 08 Dec 2024 2:28 pm
by Juan Maria Vilaro
Good afternoon, files downloaded, and I have finally been able to migrate CumulusMX-V4, everything seems to be working.
Yesterday I was on the forum all day, even with Mr.Hans, and I didn't notice until this morning that some files were missing.
Solved by me for now.
Thanks
Re: v3 to v4 data upgrade - Hostpolicy.dll missing
Posted: Sun 08 Dec 2024 2:59 pm
by HansR
OK. Great teamwork

Re: v3 to v4 data upgrade - Hostpolicy.dll missing
Posted: Sun 08 Dec 2024 8:18 pm
by nickb
Brilliant, yes confirmed all working for me now. Thanks for everyone's help and quick replies on this

Re: v3 to v4 data upgrade - Hostpolicy.dll missing
Posted: Wed 11 Dec 2024 8:11 am
by BelloWeather
A late reply to say many thanks to everyone for their work on this - going through the process of updating now using the new files
