[loadFromRemoteSources]This release of the .NET Framework does not enable CAS policy by default

来源:互联网 发布:删除双系统中的ubuntu 编辑:程序博客网 时间:2024/05/22 12:05

WinZip解压,可能导致exe损坏。

安装Expression Studio 4时,遇到不能安装的问题。原始是使用Winzip解压了原始安装镜像ISO文件。

查了一通,原来是winzip的一个bug。
对策:使用DaemonTool或其他虚拟光驱,亦或是WinRAR等其他解压软件,可以轻松解决。

以下为转载老外的经验共享:
http://blog.eight02.com/2010/11/unzipping-isos-with-winzip-bad-idea.html

Unzipping ISOs with WinZip? Bad Idea! Microsoft Expression Studio Setup error


One of my new year goals has been to learn a new programming language. Having been on the infrastructure side of IT, I haven’t had to program on a daily basis since university. I downloaded the Microsoft Visual Studio 2010 and Expression Studio 4 to get back in the programming groove, but nothing in IT is that simple! Upon trying to install ES, I received the following error message:

"Setup encountered an error: An attempt was made to load an assembly from a network location which would have caused the assembly to be sandboxed in previous versions of the .NET Framework. This release of the .NET Framework does not enable CAS policy by default, so this load may be dangerous. If this load is not intended to sandbox the assembly, please enable the loadFromRemoteSources switch. See http://go.microsoft.com/fwlink/?LinkID=155569 for more information."

ew1

To make a long story short, it isn’t Microsoft’s fault! I had downloaded The Expression Studio ISO from MSDN and unzipped it with WinZip. Turns out there is a bug in WinZip’s support for ISO files: if you attempt to extract an ISO with WinZip, the output will become corrupted. This doesn’t just apply to Expression Web: I’ve encountered this problem unzipping SQL Server 2008 R2, ANSYS 12 and countless other products.

The solution is to either burn the ISO to CD (a waste of disc), extract the ISO using another program (such as WinRAR), or mounting the ISO as a drive using DaemonTools or PowerISO (both have freeware editions).

In the future, Microsoft should consider delivering their client software as MSI bundles or WIMs, similar to how Apple distribute software in Disk Image (DMG) format. This way, they control the package distribution end-to-end without need for third party extraction tools.

Links
Problems installing Expression Studio 4, Microsoft Expression Forums

0 0