Load assembly from network location

前端 未结 3 1722
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-16 13:50

I am trying to load assembly by :

Assembly component = Assembly.LoadFrom(componentPath);

where componentPath is a full path of

3条回答
  •  没有蜡笔的小新
    2020-12-16 14:40

    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.

    Reference: http://blogs.msdn.com/b/drew/archive/2009/12/24/xunit-and-td-net-fixing-the-attempt-was-made-to-load-an-assembly-from-a-network-location-problem.aspx

提交回复
热议问题