Rider/Azure: hostpolicy.dll not found

When running/debugging an Azure Functions project locally, I get the error: 

C:\Users\wsieburgh\AppData\Local\JetBrains\Toolbox\apps\Rider\ch-0\202.7660.16\plugins\dpa\DotFiles\JetBrains.DPA.Runner.exe --handle=5724 --backend-pid=1504 --detach-event-name=dpa.detach.5724 "C:\Program Files\dotnet\dotnet.exe" Y:/RiderProjects/invoicesintegration/source/Functions/bin/Debug/netcoreapp3.1/bin/Invoicing.Functions.dll A fatal error was encountered. The library 'hostpolicy.dll' required to execute the application was not found in 'Y:\RiderProjects\invoicesintegration\source\Functions\bin\Debug\netcoreapp3.1\bin\ '.


This was when running Rider on a Windows 10 machine.

On that same machine, the same project runs find in Visual Studio.



1 comment
Comment actions Permalink

Hello Wouter,

Does it work if you try to run it with dotnet run or somehow else outside of Rider? Similar issue was discussed in the following thread, and seems to be related to entry point issue. 


Please sign in to leave a comment.