This assembly may have been downloaded from the Web. If an assembly has been downloaded from the Web, it is flagged by Windows as being a Web file, even if it resides on the local computer. This may prevent it from being used in your project.

最近比較專注在Windows Phone Development 上..
由於自己還是新手..又希望可以更快地完成自己想到的手機Apps..
所以便好好運用了網上的資源了..
E.g.
CodePlex 上有很多十分好用又實的WP7 元件..
WP7Clipboard – 方便大家在WP7 上Copy and Paste東西的元件
今天當我Download 了一個WP7 的元件 [dll] 嘗試在我的程式上使用時出現了這個錯誤信息..
Error 1 Could not load the assembly file:///D:\Document\VS2010\DLL\WP7_DLL\WP7Clipboard.dll. This assembly may have been downloaded from the Web. If an assembly has been downloaded from the Web, it is flagged by Windows as being a Web file, even if it resides on the local computer. This may prevent it from being used in your project. You can change this designation by changing the file properties. Only unblock assemblies that you trust. See http://go.microsoft.com/fwlink/?LinkId=179545 for more information.

之後發現原來是因為安全的關係
解決方法十分簡單..

只要在這個DLL 上
按右鍵-> “內容/Properties”

在這個DLL的 內容/Properties 視窗
你會看到 “This file came from another computer and might be blocked to help protect this computer

只需要按一下 “解除封鎖/ Unblock” 按鈕 之後按 “套用 / Apply” 和 “確定/OK” 便可

之後再次Complie 你的Project 便可以解決這個問題的

Hope you find it useful

Leave a Reply