System.IO.Compression dll缺少错误 [英] System.IO.Compression dll missing error

查看:123
本文介绍了System.IO.Compression dll缺少错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是.Net framework 4.0,System.IO.Compression只支持4.5。所以我从4.5文件夹中提到它,它在我的4.0应用程序中工作。现在的问题是,在发布之后,我没有在Bin文件夹中获取dll(System.IO.Compression),所以我在托管后得到dll错误。托管iis仅支持4.0。

I am using .Net framework 4.0, System.IO.Compression is only supported in 4.5. So I refered it from the 4.5 folder and it worked in my 4.0 application. Now the issue is that after publishing, I am not getting the dll(System.IO.Compression)in the Bin folder, So i am getting dll missing error after hosting. Hosted iis supports 4.0 only.

推荐答案

你不应该这样做。名称空间System.IO.Compression由所有放在GAC中的DLL使用。您应始终通过强名称通过可执行模块引用这些DLL。请参阅:

http://en.wikipedia.org/wiki/Global_Assembly_Cache [< a href =http://en.wikipedia.org/wiki/Global_Assembly_Cachetarget =_ blanktitle =New Window> ^ ],

http://msdn.microsoft.com/en-us/library/yf1d93sz%28v=vs .110%29.aspx [ ^ ],

http://en.wikipedia.org / wiki / Strong_name [ ^ ],
http://msdn.microsoft.com/en -us / library / wd40t7ad%28v = vs.110%29.aspx [ ^ ]。



-SA
You should not do such things. The namespace "System.IO.Compression" is used by several DLLs all put in the GAC. You should always reference those DLLs by strong names, not by their executable modules. Please see:
http://en.wikipedia.org/wiki/Global_Assembly_Cache[^],
http://msdn.microsoft.com/en-us/library/yf1d93sz%28v=vs.110%29.aspx[^],
http://en.wikipedia.org/wiki/Strong_name[^],
http://msdn.microsoft.com/en-us/library/wd40t7ad%28v=vs.110%29.aspx[^].

—SA


这篇关于System.IO.Compression dll缺少错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆