Load assembly from network location

懵懂的女人 提交于 2019-11-28 12:01:29

Read Best Practices for Assembly Loading to get an idea.
Also read this msdn blog on .NET Security

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

Starnuto di topo

In addition to Furqan Safdar's answer, another option would be to add this tag in the configuration file:

<configuration>
   <runtime>
      <loadFromRemoteSources enabled="true"/>
   </runtime>
</configuration>

Hope these links could help:

http://msdn.microsoft.com/en-us/library/dd409252(VS.100).aspx

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!