Tech Off Thread

3 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

Cant trust a project .DLL on a network location from VS 2010 and 2012

Back to Forum: Tech Off
  • User profile image
    whiteBox85

     

    I am having an issue of editing a Visual Studio project by which it is saved on a remote server at home.

    First of all, my setup is:-

    1. Windows 8 64bit RC, With Visual Studio 2010 installed.
    2. Windows Server 2012 RC. With a Shared Folder accessed with an account (//Dev).

    The problem here is from Windows 8 RC, I can access the share and create the projects I want. But if I build the project I got this error:-

    Could not load the assembly file:///C:\***.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.

    I tried to unblock the .DLL file from its properties but the UNBLOCK button is not available.

    Plz help.

  • User profile image
    AndyC

    Er, it's telling you that it can't load an assembly located at C:\****.dll

    You've told us the assembly is on a remote share, thus probably not at C:\ something.

    So, my psychic debugging skills tell me your dll is not located in the same place it was when you originally added a reference to it and so that reference is now pointing to the wrong place. Update your references and it'll work.

    http://blogs.msdn.com/b/oldnewthing/archive/2012/06/06/10315550.aspx

  • User profile image
    AndrewSt

    Hi whiteBox85, there is a thread regarding a similar issue on StackOverflow:

    http://stackoverflow.com/questions/1823339/error-building-visual-studio-2010-silverlight-4-projects-on-windows-7-with-xp-mo

    Adding the <loadFromRemoteSources enabled="true"/> under <configuration> <runtime> in devenv.exe.config actually fixed the "This assembly may have been downloaded from the Web" issue for me in VS2010, give it a try.

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.