Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

v3 to v4 data upgrade - Hostpolicy.dll missing

From Cumulus MX version 3 build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since, and has recently released Cumulus MX version 4. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

Post Reply
BelloWeather
Posts: 9
Joined: Thu 11 Jun 2020 1:52 am
Weather Station: Davis VP2
Operating System: Windows 10
Location: Bellingen, NSW, Australia
Contact:

v3 to v4 data upgrade - Hostpolicy.dll missing

Post 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 :)
water01
Posts: 3669
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10/11 64bit Synology NAS
Location: Burnham-on-Sea
Contact:

Re: v3 to v4 data upgrade - Hostpolicy.dll missing

Post 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?
David
Image
nickb
Posts: 3
Joined: Sun 08 Dec 2024 7:14 am
Weather Station: Ecowitt
Operating System: Windows

Re: v3 to v4 data upgrade - Hostpolicy.dll missing

Post 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
freddie
Posts: 2870
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 24.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: v3 to v4 data upgrade - Hostpolicy.dll missing

Post by freddie »

Is the runtimeconfig.json file mentioned in the error message present?
Freddie
Image
nickb
Posts: 3
Joined: Sun 08 Dec 2024 7:14 am
Weather Station: Ecowitt
Operating System: Windows

Re: v3 to v4 data upgrade - Hostpolicy.dll missing

Post 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.
Juan Maria Vilaro
Posts: 37
Joined: Sun 28 Jan 2018 7:02 pm
Weather Station: Davis Vantage Pro2 Plus Aspirada
Operating System: Windows 11
Location: Badalona

Re: v3 to v4 data upgrade - Hostpolicy.dll missing

Post 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.
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: v3 to v4 data upgrade - Hostpolicy.dll missing

Post by HansR »

@Mark: should MigrateData3to4 have been recompiled (like the other auxiliary programs) with version 4.3?
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
User avatar
mcrossley
Posts: 14384
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: v3 to v4 data upgrade - Hostpolicy.dll missing

Post by mcrossley »

I don't think so, but I'll check. The missing JSON doesn't sound right though
User avatar
mcrossley
Posts: 14384
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: v3 to v4 data upgrade - Hostpolicy.dll missing

Post by mcrossley »

Please add the attached files to your Cumulus MX folder and try again.
You do not have the required permissions to view the files attached to this post.
Juan Maria Vilaro
Posts: 37
Joined: Sun 28 Jan 2018 7:02 pm
Weather Station: Davis Vantage Pro2 Plus Aspirada
Operating System: Windows 11
Location: Badalona

Re: v3 to v4 data upgrade - Hostpolicy.dll missing

Post 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
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: v3 to v4 data upgrade - Hostpolicy.dll missing

Post by HansR »

OK. Great teamwork :D :clap:
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
nickb
Posts: 3
Joined: Sun 08 Dec 2024 7:14 am
Weather Station: Ecowitt
Operating System: Windows

Re: v3 to v4 data upgrade - Hostpolicy.dll missing

Post by nickb »

Brilliant, yes confirmed all working for me now. Thanks for everyone's help and quick replies on this :clap:
BelloWeather
Posts: 9
Joined: Thu 11 Jun 2020 1:52 am
Weather Station: Davis VP2
Operating System: Windows 10
Location: Bellingen, NSW, Australia
Contact:

Re: v3 to v4 data upgrade - Hostpolicy.dll missing

Post 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 :)
Post Reply