Page MenuHomePhabricator

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

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/

Event Timeline

Reedy created this task.Nov 5 2018, 8:50 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptNov 5 2018, 8:50 PM

https://github.com/reedy/AutoWikiBrowser/commit/6c604bf95042c42cd931ee7191ea6238b8c71d03 puts a handle in for the exceptiion, but doesn't do anything about it