Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problem Unblocking Assemblies in Windows 7 Home Premium

I am getting the following error trying to load a basic project template:

Error 12 Could not load the assembly file://\\psf\home\documents\visual studio 2010\Projects\WindowsPhonePivotApplication1\WindowsPhonePivotApplication1\obj\Debug\WindowsPhonePivotApplication1.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. WindowsPhonePivotApplication1

I don't have the Security tab when I try and modify the DLL to unblock the assembly. Any advice?

alt text

like image 635
Sheehan Alam Avatar asked Nov 05 '10 04:11

Sheehan Alam


People also ask

How do I unblock files on Windows 7?

Open File Explorer and right-click on the file. Click on Properties. Click on Unblock.

How do I unblock all files in a folder?

Add Unblock File Context Menu Confirm the User Account Control prompt by clicking on the Yes button. Now, right-click a file or a folder in File Explorer and select Show more options. From the full context menu, select Unblock. Right-click a folder to unblock all its files at once.

How do I unblock apps on my computer?

Right-click or press and then hold the blocked file, and select 'Properties. ' Going to the General tab, select the Unblock box at the right bottom, and click OK. If prompted, then tap 'Continue.

How do I unblock PowerShell in Windows 10?

The Unblock-File cmdlet lets you open files that were downloaded from the internet. It unblocks PowerShell script files that were downloaded from the internet so you can run them, even when the PowerShell execution policy is RemoteSigned. By default, these files are blocked to protect the computer from untrusted files.


1 Answers

Did you try copying this assembly locally? Currently it seems to be loaded from a network share. You will need to trust that network location if you want to work this way.

Drive:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\caspol.exe -m -ag 1 -url "file:////\computername\sharename*" FullTrust -exclusive on

Check this KB for details... http://support.microsoft.com/kb/320268/

like image 72
Rahul Soni Avatar answered Nov 16 '22 02:11

Rahul Soni