How to: Use an Assembly from the Web in Visual Studio

This topic shows how to use an assembly that you download from the Web in Visual Studio. For security reasons, Visual Studio blocks you from loading a Web assembly in the Choose Items and Add Reference dialog boxes.

Warning

Unblocking an assembly that is downloaded from the Web gives it Full Trust. Only unblock assemblies that you trust.

Unblocking a Web Assembly

To unblock a Web assembly

  1. Close Visual Studio.

  2. Using Windows Explorer, browse to the assembly that you downloaded from the Web.

  3. Right-click the assembly, and from the shortcut menu, select Properties.

    The Properties dialog box opens.

  4. On the General tab, click the Unblock button to indicate that this assembly is trusted

    Note

    The Unblock button will not appear if the assembly is already unblocked and available.

  5. Click OK to close the Properties dialog box.

  6. Restart Visual Studio and open your project.

    You should now be able to browse to the assembly in the Choose Items or Add Reference dialog boxes.

See Also

Reference

<loadFromRemoteSources> Element

Other Resources

Debugging and Interpreting Errors in the WPF Designer