Page MenuHomePhabricator

Better handling of plugins blocked from being loaded by Windows
Open, LowPublic

Description

Seems in .NET 4.5 windows can block loading plugins due to coming from an unknown source (bleugh)

https://stackoverflow.com/questions/5328274/load-assembly-from-network-location

I was having this same issue. The reason was that the Assembly file was blocked by Windows. I resolved it by right clicking on the Assembly file and selecting properties. In the Properties dialog, click Unblock button under the General tab and click Apply and then OK.

That's apparently enough to fix it, but we should handle (and surface) the error better, and potentially see if we've got another way around it

https://docs.microsoft.com/en-us/dotnet/framework/deployment/best-practices-for-assembly-loading
https://blogs.msdn.microsoft.com/shawnfa/2009/06/08/more-implicit-uses-of-cas-policy-loadfromremotesources/