Unlocking a DLL on a corporate machine. How?

I am trying to check MVVMLight, but the DLLs that come with it are BLOCKED. I read about it and they tell me to click UNBLOCK in the file property .. but it doesn’t exist for me .. Then I found out from a program called STREAMS, which is supposed to unlock .. it didn’t work ... another idea , How to fix it?

Error 7: Could not load assembly file: /// C: \ MIX10-MVVM-Samples \ Mix10.MvvmDemo2 - End \ Mix10.MvvmDemo2 \ Bin \ Debug \ GalaSoft.MvvmLight.Extras.SL4.dll. This assembly may have been downloaded from the Internet. If the assembly was downloaded from the Internet, it is marked by Windows as a web file, even if it is located on the local computer. This may interfere with its use in your project. You can change this notation by changing the file properties. Only unlock builds that you trust. See http://go.microsoft.com/fwlink/?LinkId=179545 for details. Mix10.MvvmDemo2

+17
dll visual-studio mvvm-light
Jun 18 2018-10-18
source share
6 answers

The file contains an alternative data stream that indicates that the content has been retrieved from the Internet and is not safe. This is a feature of the NTFS file system, which, unfortunately, is hidden because Explorer does not have support for displaying its content. You can see them on the command line using the DIR / R option. And enter their contents with the file name TYPE: streamname. And delete them with DELETE filename: streamname

Other tricks are copying the file to the file system, which does not support alternative data streams, which cuts them from the file. For example, a flash drive. Or zip utility.

Later versions of Windows, I think starting with Win7, have built-in support for this in Explorer. Right-click the Properties file and click Unlock.

+21
Jun 18 '10 at 19:25
source share

SysInternals has an excellent command line utility called Streams . This has been very helpful to me.

Streams v1.56 - Enumerate NTFS Striped Data Streams Copyright (C) 1999-2007 Mark Russinovich Sysinternals - www.sysinternals.com

usage: streams [-s] [-d] <file or directory>
-s Restore subdirectories
-d Delete threads

Run the following command in the directory from which you want to remove streams (the same effect as copying to a USB / FAT32 drive)

streams.exe -d -s *.*

+16
Jul 12 2018-11-11T00:
source share

Open the zip file first and then extract the dll. In fact, this is what they are instructing to do here .

+10
Jun 18 '10 at 19:03
source share

For general understanding only. NTFS supports streams (see http://msdn.microsoft.com/en-us/library/aa364404%28VS.85%29.aspx ). The full name of the stream file_name: stream_name: stream_type . Thus, you can easily write additional file information in an additional file stream. If you download a file from the Internet, Internet Explorer write simple information in a stream called Zone.Identifier . If you have a test.dll file downloaded from the Internet, you can use

 more < test.dll:Zone.Identifier 

to view information from the stream. You will see something like

 [ZoneTransfer] ZoneId=3 

Unlocking is not just deleting this thread. I recommend you read http://weblogs.asp.net/dixin/archive/2009/03/14/understanding-the-internet-file-blocking-and-unblocking.aspx for more details.

+10
Jun 18 '10 at 19:31
source share

I just opened the DLL file in notepad ++ and saved it with a different name.

+2
Aug 13 '10 at 6:34
source share

If this helps someone, I knocked down two locked DLLs from TFS.

My decision:

  • Inside Windows Explorer, remove two locked DLLs.
  • Inside TFS, perform the operation “Get a specific version” in the folder and make sure that “Overwrite all files, even if the local version matches the specified version”, is checked so that you pull out fresh copies of the deleted DLLs.
  • Recover your decision.
0
Jan 02 '14 at 20:37
source share



All Articles